summaryrefslogtreecommitdiff
path: root/Documentation/git-gc.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-01-10 14:32:06 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-01-10 11:55:27 -0800
commit77f7f822889411bfede0507dd60aebf11edb2849 (patch)
tree2c9f914b6686a81ff26ee3a5368cd4cf72d27be3 /Documentation/git-gc.txt
parentattr: don't confuse prefixes with leading directories (diff)
downloadtgif-77f7f822889411bfede0507dd60aebf11edb2849.tar.xz
attr: drop misguided defensive coding
In prepare_attr_stack, we pop the old elements of the stack (which were left from a previous lookup and may or may not be useful to us). Our loop to do so checks that we never reach the top of the stack. However, the code immediately afterwards will segfault if we did actually reach the top of the stack. Fortunately, this is not an actual bug, since we will never pop all of the stack elements (we will always keep the root gitattributes, as well as the builtin ones). So the extra check in the loop condition simply clutters the code and makes the intent less clear. Let's get rid of it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-gc.txt')
0 files changed, 0 insertions, 0 deletions