summaryrefslogtreecommitdiff
path: root/builtin-read-tree.c
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2006-12-15 21:53:09 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2006-12-15 22:31:01 -0800
commitaeb80c70ec2baebbf107de0ea5293984798ddd24 (patch)
treed3b28c73075fefae827caa5fbfcc8d137df60b9f /builtin-read-tree.c
parentMake git-diff documentation use [--] when it should. (diff)
downloadtgif-aeb80c70ec2baebbf107de0ea5293984798ddd24.tar.xz
Suggest use of "git add file1 file2" when there is nothing to commit.
If a user modifies files and runs 'git commit' (without the very useful -a option) and they have not yet updated the index they are probably coming from another SCM-like tool which would perform the same as 'git commit -a' in this case. Showing the user their current status and a final line of "nothing to commit" is not very reassuring, as the user might believe that Git did not recognize their files were modified. Instead we can suggest as part of the 'nothing to commit' message that the user invoke 'git add' to add files to their next commit. Suggested by Andy Parkins' Git 'niggles' list (<200612132237.10051.andyparkins@gmail.com>). Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-read-tree.c')
0 files changed, 0 insertions, 0 deletions