diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-27 23:15:53 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-28 01:06:06 -0800 |
commit | cd673c1f17228d272c4b7f81fbb28bc31cf0cac6 (patch) | |
tree | 5e5537843e6b38f62a3b4f15437e4a3bf8ee89ab /builtin-prune-packed.c | |
parent | 2478dc84b5fb2617bfab3a8f65f1270de578b94a (diff) | |
download | git-cd673c1f17228d272c4b7f81fbb28bc31cf0cac6.tar.gz git-cd673c1f17228d272c4b7f81fbb28bc31cf0cac6.tar.xz |
has_sha1_pack(): refactor "pretend these packs do not exist" interface
Most of the callers of this function except only one pass NULL to its last
parameter, ignore_packed.
Introduce has_sha1_kept_pack() function that has the function signature
and the semantics of this function, and convert the sole caller that does
not pass NULL to call this new function.
All other callers and has_sha1_pack() lose the ignore_packed parameter.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-prune-packed.c')
-rw-r--r-- | builtin-prune-packed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index 10cb8df84..2d5b2cd35 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -23,7 +23,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len, int opts) memcpy(hex+2, de->d_name, 38); if (get_sha1_hex(hex, sha1)) continue; - if (!has_sha1_pack(sha1, NULL)) + if (!has_sha1_pack(sha1)) continue; memcpy(pathname + len, de->d_name, 38); if (opts & DRY_RUN) |