From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: "Tom Schinckel" <gunny01@gmail.com>,
"David Kågedal" <davidk@lysator.liu.se>
Subject: Re: Git Questions
Date: Mon, 20 Aug 2007 13:46:19 +0100 [thread overview]
Message-ID: <200708201346.21557.andyparkins@gmail.com> (raw)
In-Reply-To: <1187612156.11595.17.camel@tom-desktop>
On Monday 2007 August 20, Tom Schinckel wrote:
> The reason I want to do that is so I can set up blind commits that I can
> add in a anacron job or something. The information about the files isn't
> really important
The point still stands though - what you are asking is to put information the
commit message that is available outside of the commit message anyway - so
why bother? If you really don't care about a commit message, then just use
git commit -a -m ""
This commits all (-a) changed files and uses an empty commit message (-m "").
Then later, if you wanted to see a summary of a particular commit
git show --stat <commit hash>
For example, in my currently checked out git repository:
$ git show --stat HEAD
commit 83b3df7d582429d9036f34d2c95abfff7bf0ab24
Author: Junio C Hamano <gitster@pobox.com>
Date: Fri Jul 27 23:51:45 2007 -0700
git-stash apply --index: optimize postprocessing
Originally, "apply --index" codepath was bolted on to the
"update working tree files and index, but then revert the
changes we make to the index except for added files so that we
do not forget about them" codepath, almost as an afterthought.
Because "apply --index" first prepares the final index state
upfront, "revert except the added paths" postprocessing does not
have to be done.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
In particular note the summary at the bottom - that's not stored in the commit
message, but git is perfectly capably of telling you all about what files
changed. No need to put git-status in the log message as well.
Andy
--
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
next prev parent reply other threads:[~2007-08-20 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 9:55 Git Questions Tom Schinckel
2007-08-20 10:06 ` Jeff King
2007-08-20 11:23 ` David Kågedal
2007-08-20 12:15 ` Tom Schinckel
2007-08-20 12:46 ` Andy Parkins [this message]
2007-08-20 12:59 ` David Tweed
2007-08-20 18:35 ` Jan Hudec
2007-08-20 12:53 ` Matthieu Moy
2007-08-20 13:06 ` David Tweed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200708201346.21557.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=davidk@lysator.liu.se \
--cc=git@vger.kernel.org \
--cc=gunny01@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).