diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-08-15 18:37:01 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-15 20:23:19 (GMT) |
commit | 887f3533fd764722ffb6e4ea34c01ad9256f0186 (patch) | |
tree | cb7084c019f7fc0036703328022e9dd89c27b991 /check_bindir | |
parent | 64de20a1265b676f9cc0e5f46379a017560fa333 (diff) | |
download | git-887f3533fd764722ffb6e4ea34c01ad9256f0186.zip git-887f3533fd764722ffb6e4ea34c01ad9256f0186.tar.gz git-887f3533fd764722ffb6e4ea34c01ad9256f0186.tar.bz2 |
send-pack: factor out capability string generation
A run of 'var ? " var" : ""' fed to a long printf string in a deeply
nested block was hard to read. Move it outside the loop and format
it into a strbuf.
As an added bonus, the trick to add "agent=<agent-name>" by using
two conditionals is replaced by a more readable version.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check_bindir')
0 files changed, 0 insertions, 0 deletions