Revision 38bdf62b738bb93f7e1a6af8058dc31f27c91d4e authored by René Scharfe on 01 October 2017, 14:45:45 UTC, committed by Junio C Hamano on 02 October 2017, 04:14:07 UTC
strbuf_addf() can be used to add a specific number of space characters by using the format "%*s" with an empty string and specifying the desired width. Use strbuf_addchars() instead as it's shorter, makes the intent clearer and is a bit more efficient. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 72d4a9a
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 668 bytes |
test-chmtime.c | -rw-r--r-- | 2.6 KB |
test-config.c | -rw-r--r-- | 5.0 KB |
test-ctype.c | -rw-r--r-- | 928 bytes |
test-date.c | -rw-r--r-- | 2.3 KB |
test-delta.c | -rw-r--r-- | 1.8 KB |
test-dump-cache-tree.c | -rw-r--r-- | 1.6 KB |
test-dump-split-index.c | -rw-r--r-- | 870 bytes |
test-dump-untracked-cache.c | -rw-r--r-- | 1.7 KB |
test-fake-ssh.c | -rw-r--r-- | 815 bytes |
test-genrandom.c | -rw-r--r-- | 731 bytes |
test-hashmap.c | -rw-r--r-- | 6.2 KB |
test-index-version.c | -rw-r--r-- | 268 bytes |
test-lazy-init-name-hash.c | -rw-r--r-- | 6.2 KB |
test-line-buffer.c | -rw-r--r-- | 2.0 KB |
test-match-trees.c | -rw-r--r-- | 619 bytes |
test-mergesort.c | -rw-r--r-- | 934 bytes |
test-mktemp.c | -rw-r--r-- | 278 bytes |
test-online-cpus.c | -rw-r--r-- | 145 bytes |
test-parse-options.c | -rw-r--r-- | 5.5 KB |
test-path-utils.c | -rw-r--r-- | 7.3 KB |
test-prio-queue.c | -rw-r--r-- | 631 bytes |
test-read-cache.c | -rw-r--r-- | 235 bytes |
test-ref-store.c | -rw-r--r-- | 7.6 KB |
test-regex.c | -rw-r--r-- | 1.5 KB |
test-revision-walking.c | -rw-r--r-- | 1.4 KB |
test-run-command.c | -rw-r--r-- | 2.0 KB |
test-scrap-cache-tree.c | -rw-r--r-- | 436 bytes |
test-sha1-array.c | -rw-r--r-- | 935 bytes |
test-sha1.c | -rw-r--r-- | 951 bytes |
test-sha1.sh | -rwxr-xr-x | 1.9 KB |
test-sigchain.c | -rw-r--r-- | 354 bytes |
test-strcmp-offset.c | -rw-r--r-- | 453 bytes |
test-string-list.c | -rw-r--r-- | 3.1 KB |
test-submodule-config.c | -rw-r--r-- | 1.5 KB |
test-subprocess.c | -rw-r--r-- | 403 bytes |
test-svn-fe.c | -rw-r--r-- | 1.3 KB |
test-urlmatch-normalization.c | -rw-r--r-- | 1.2 KB |
test-wildmatch.c | -rw-r--r-- | 627 bytes |
test-write-cache.c | -rw-r--r-- | 478 bytes |
Computing file changes ...