Files
git/builtin
Jeff King a5b3663898 branch: only perform HEAD check for local branches
When assembling the ref-filter format to show "git branch"
output, we put the "%(if)%(HEAD)" conditional at the start
of the overall format. But there's no point in checking
whether a remote branch matches HEAD, as it never will.
The check should go inside the local conditional; we
assemble that format inside the "local" strbuf.

By itself, this is just a minor optimization. But in a
future patch, we'll need this refactoring to fix
local-branch coloring.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-07-09 09:24:42 -07:00
..
2016-12-21 14:55:01 -08:00
2016-11-22 13:55:20 -08:00
2016-10-10 14:03:51 -07:00
2016-02-26 13:37:16 -08:00
2016-12-19 14:45:35 -08:00
2016-09-29 15:42:18 -07:00
2016-09-21 15:15:24 -07:00
2016-09-29 15:42:18 -07:00
2016-10-10 14:03:50 -07:00
2016-09-26 16:09:17 -07:00
2016-11-22 13:13:16 -08:00
2016-09-29 15:42:18 -07:00
2016-09-29 15:42:18 -07:00
2016-12-19 14:45:38 -08:00
2016-07-14 15:50:41 -07:00
2016-09-29 15:42:18 -07:00
2016-07-13 11:24:10 -07:00
2015-10-05 13:20:08 -07:00
2016-09-29 20:40:23 -07:00
2016-10-03 12:46:47 -07:00
2017-01-31 12:43:04 -08:00
2016-11-28 13:18:51 -08:00