diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-10-24 08:56:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-25 12:59:27 +0900 |
commit | 2588f6ed8bd4e31c1ea1ae35f9f668452b46f1ef (patch) | |
tree | 69f2ab637108682342619f436bcfdb530fb4782b /t/t0051-windows-named-pipe.sh | |
parent | repack: point out a bug handling stale shallow info (diff) | |
download | tgif-2588f6ed8bd4e31c1ea1ae35f9f668452b46f1ef.tar.xz |
shallow: offer to prune only non-existing entries
The `prune_shallow()` function wants a full reachability check to be
completed before it goes to work, to ensure that all unreachable entries
are removed from the shallow file.
However, in the upcoming patch we do not even want to go that far. We
really only need to remove entries corresponding to pruned commits, i.e.
to commits that no longer exist.
Let's support that use case.
Rather than extending the signature of `prune_shallow()` to accept
another Boolean, let's turn it into a bit field and declare constants,
for readability.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0051-windows-named-pipe.sh')
0 files changed, 0 insertions, 0 deletions