Re: [PATCH] gitk: show detached HEAD if --all is specified

2014-09-09 Thread Junio C Hamano
Junio C Hamano writes: > Max Kirillov writes: > >> If HEAD is detached, 'gitk --all' does not show it. This is inconvenient >> for frontend program, and for example git log does show the detached HEAD. > > "git log" does use the same revision machinery as rev-parse uses > internally to parse its

Re: [PATCH] gitk: show detached HEAD if --all is specified

2014-09-09 Thread Junio C Hamano
Max Kirillov writes: > If HEAD is detached, 'gitk --all' does not show it. This is inconvenient > for frontend program, and for example git log does show the detached HEAD. "git log" does use the same revision machinery as rev-parse uses internally to parse its command line arguments. What does

[PATCH] gitk: show detached HEAD if --all is specified

2014-09-09 Thread Max Kirillov
If HEAD is detached, 'gitk --all' does not show it. This is inconvenient for frontend program, and for example git log does show the detached HEAD. gitk uses git rev-parse to find a list of branches to show. Apparently, the command does not include detached HEAD to output if --all argument is spec