Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2015-02-21 22:53:09 +0300
committerJunio C Hamano <gitster@pobox.com>2015-02-22 23:01:37 +0300
commit68d6d6eb402d7e39c89ce43ca37e6c16b941890c (patch)
tree43e5d53e4994466ddebbb8b52e16927bd65b9656 /sha1_name.c
parent008d5d005d862d9b0309af94dfc266e3b06bdf6d (diff)
pretty: use starts_with() to check for a prefix
Simplify the code and avoid duplication by using starts_with() instead of strlen() and strncmp() to check if a line starts with "encoding ". Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
0 files changed, 0 insertions, 0 deletions