summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-06-30 13:45:22 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-06-30 13:45:22 -0700
commit7e46f19a105f3798b03ac3887f45034fbfdff676 (patch)
treef258b34d49b1e01d41e6de033e091335359cb9a8 /builtin
parentMerge branch 'ab/die-errors-in-threaded' (diff)
parentstatus: contextually notify user about an initial commit (diff)
downloadtgif-7e46f19a105f3798b03ac3887f45034fbfdff676.tar.xz
Merge branch 'ks/status-initial-commit'
"git status" has long shown essentially the same message as "git commit"; the message it gives while preparing for the root commit, i.e. "Initial commit", was hard to understand for some new users. Now it says "No commits yet" to stress more on the current status (rather than the commit the user is preparing for, which is more in line with the focus of "git commit"). * ks/status-initial-commit: status: contextually notify user about an initial commit
Diffstat (limited to 'builtin')
-rw-r--r--builtin/commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 00a01f07c3..03b97c6449 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1660,6 +1660,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
usage_with_options(builtin_commit_usage, builtin_commit_options);
status_init_config(&s, git_commit_config);
+ s.commit_template = 1;
status_format = STATUS_FORMAT_NONE; /* Ignore status.short */
s.colopts = 0;