diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2005-12-15 08:47:30 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-21 23:09:40 -0800 |
commit | 7246ed438c541650c2cd50e4e98b43226f60da0c (patch) | |
tree | f7b8899038e9434ce77fe7db3ca7ccf80747b2f7 /show-branch.c | |
parent | f4a11066cfb70c49fddbca7f95aa0fedcee53cca (diff) | |
download | git-7246ed438c541650c2cd50e4e98b43226f60da0c.tar.gz |
\n usage in stderr output
fprintf and die sometimes have missing/excessive "\n" in their arguments,
correct the strings where I think it would be appropriate.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'show-branch.c')
-rw-r--r-- | show-branch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/show-branch.c b/show-branch.c index c7422460be..3fe62b7177 100644 --- a/show-branch.c +++ b/show-branch.c @@ -303,7 +303,7 @@ static int append_ref(const char *refname, const unsigned char *sha1) return 0; if (MAX_REVS <= ref_name_cnt) { fprintf(stderr, "warning: ignoring %s; " - "cannot handle more than %d refs", + "cannot handle more than %d refs\n", refname, MAX_REVS); return 0; } @@ -537,7 +537,7 @@ int main(int ac, char **av) if (MAX_REVS <= num_rev) die("cannot handle more than %d revs.", MAX_REVS); if (get_sha1(ref_name[num_rev], revkey)) - die("'%s' is not a valid ref.\n", ref_name[num_rev]); + die("'%s' is not a valid ref.", ref_name[num_rev]); commit = lookup_commit_reference(revkey); if (!commit) die("cannot find commit %s (%s)", |