summaryrefslogtreecommitdiff
path: root/t/t4111-apply-subdir.sh
diff options
context:
space:
mode:
authorLibravatar SZEDER Gábor <szeder@ira.uka.de>2013-06-17 21:42:55 +0200
committerLibravatar SZEDER Gábor <szeder@ira.uka.de>2013-06-24 18:03:37 +0200
commit69a8141a5d81925b7e08cb228535e9ea4a7a02e3 (patch)
treeb2ca3c8372beedbb4c7fa52fd461c042f8be2b98 /t/t4111-apply-subdir.sh
parentbash prompt: avoid command substitution when checking for untracked files (diff)
downloadtgif-69a8141a5d81925b7e08cb228535e9ea4a7a02e3.tar.xz
bash prompt: avoid command substitution when finalizing gitstring
Before setting $PS1, __git_ps1() uses a command substitution to redirect the output from a printf into a variable. Spare the overhead of fork()ing a subshell by using 'printf -v <var>' to directly assign the output to that variable. zsh's printf doesn't support the '-v <var>' option, so stick with the command substitution when under zsh. Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Diffstat (limited to 't/t4111-apply-subdir.sh')
0 files changed, 0 insertions, 0 deletions