diff options
author | 2014-08-15 11:37:01 -0700 | |
---|---|---|
committer | 2014-09-15 13:23:19 -0700 | |
commit | 887f3533fd764722ffb6e4ea34c01ad9256f0186 (patch) | |
tree | cb7084c019f7fc0036703328022e9dd89c27b991 /Documentation/git.txt | |
parent | send-pack: always send capabilities (diff) | |
download | tgif-887f3533fd764722ffb6e4ea34c01ad9256f0186.tar.xz |
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 'Documentation/git.txt')
0 files changed, 0 insertions, 0 deletions