Re: [PATCH] reachable.c: add HEAD to reachability starting commits

2014-08-31 Thread Jeff King
On Sat, Aug 30, 2014 at 11:58:35PM +0300, Max Kirillov wrote: > HEAD is not explicitly used as a starting commit for > calculating reachability, so if it's detached and reflogs > are disabled it may be pruned. Eek, you're right. I think nobody noticed because the HEAD reflog usually picks it up (

[PATCH] reachable.c: add HEAD to reachability starting commits

2014-08-30 Thread Max Kirillov
HEAD is not explicitly used as a starting commit for calculating reachability, so if it's detached and reflogs are disabled it may be pruned. Add test which demonstrates it. Signed-off-by: Max Kirillov --- Hi. This is a followup of http://thread.gmane.org/gmane.comp.version-control.git/255996