diff options
author | Nicolas Pitre <nico@cam.org> | 2006-12-14 23:15:44 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-15 22:29:54 -0800 |
commit | ebd124c6783da5e064963611ee17741cd173f6b5 (patch) | |
tree | d3e5ba5b8a6ef190bc1144c841105a2de24425c9 /builtin-commit-tree.c | |
parent | 1510fea781cb0517eeba8c378964f7bc4f9577ab (diff) | |
download | git-ebd124c6783da5e064963611ee17741cd173f6b5.tar.gz git-ebd124c6783da5e064963611ee17741cd173f6b5.tar.xz |
make commit message a little more consistent and conforting
It is nicer to let the user know when a commit succeeded all the time,
not only the first time. Also the commit sha1 is much more useful than
the tree sha1 in this case.
This patch also introduces a -q switch to supress this message as well
as the summary of created/deleted files.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-commit-tree.c')
-rw-r--r-- | builtin-commit-tree.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-commit-tree.c b/builtin-commit-tree.c index e2e690a1a..856f3cd84 100644 --- a/builtin-commit-tree.c +++ b/builtin-commit-tree.c @@ -107,8 +107,6 @@ int cmd_commit_tree(int argc, const char **argv, const char *prefix) if (new_parent(parents)) parents++; } - if (!parents) - fprintf(stderr, "Committing initial tree %s\n", argv[1]); init_buffer(&buffer, &size); add_buffer(&buffer, &size, "tree %s\n", sha1_to_hex(tree_sha1)); |