git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Potapov <dpotapov@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "George Dennie" <gdennie@pospeople.com>,
	"'Jan Krüger'" <jk@jk.gs>,
	git@vger.kernel.org
Subject: Re: Hey - A Conceptual Simplication....
Date: Fri, 20 Nov 2009 18:07:47 +0300	[thread overview]
Message-ID: <20091120150747.GF22556@dpotapov.dyndns.org> (raw)
In-Reply-To: <7vmy2h904e.fsf@alter.siamese.dyndns.org>

On Thu, Nov 19, 2009 at 10:33:05PM -0800, Junio C Hamano wrote:
> Dmitry Potapov <dpotapov@gmail.com> writes:
> 
> > It is more difficult to make this mistake with Git than many others
> > VCSes, because Git shows the list of files that are changed but not
> > committed as well as the list of untracked files when you try to commit
> > something.
> 
> Not really in practice.  Too many people carry their existing practice of
> using -m to write a useless single liner commit log message that they
> acquired while using their previous SCM.

Well, at least, Git allows to avoid this mistake and produce good commit
messages, but you are right it is difficult to break old bad habits...

> Arguably, useless log messages
> are less of a problem on systems like CVS/SVN because they do not do
> useful log summarization such as "log -- paths..." or "shortlog", so they
> can be excused for learning the practice in the first place, though.

I think quite often commits in CVS/SVN cannot be summarized, because a
single commit often contains what would be a short series of patches in
Git plus a few separated fix-ups that are completely unrelated to the
whole series. It is trivial to split your changes in a few separate
commits in Git, but it is difficult to do that with CVS/SVN.

> That incidentally is exactly why earlier we (mostly me and Linus)
> recommended people not to teach "commit -m" to new people, but of course
> nobody listened ;-).

Those who got used to '-m' in another VCS will quickly find it on their
own... BTW, Git User's Manual uses "git commit -m" 8 times in different
examples, largely to explain what is committed here, and I think it is
similar with other introductions to Git. Though, clearly '-m' is rarely
useful in practice...


Dmitry

  reply	other threads:[~2009-11-20 15:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 12:55 Hey - A Conceptual Simplication George Dennie
2009-11-18 13:18 ` Jonathan del Strother
2009-11-18 13:25 ` Jan Krüger
2009-11-18 18:51   ` George Dennie
2009-11-18 19:40     ` Jakub Narebski
2009-11-18 19:52       ` Jason Sewall
2009-11-19  2:03         ` George Dennie
2009-11-19  7:42           ` Björn Steinbrink
2009-11-19 20:12             ` George Dennie
2009-11-19 21:27               ` Junio C Hamano
2009-11-20  0:49               ` Jakub Narebski
2009-11-20  6:27                 ` Junio C Hamano
2009-11-20  2:31               ` Dmitry Potapov
2009-11-19 10:27           ` Jakub Narebski
2009-11-20  1:48           ` Dmitry Potapov
2009-11-20  1:55             ` david
2009-11-20  2:56               ` Dmitry Potapov
2009-11-20  2:35             ` Björn Steinbrink
2009-11-20  3:08               ` Dmitry Potapov
2009-11-20  1:35     ` Dmitry Potapov
2009-11-20  6:33       ` Junio C Hamano
2009-11-20 15:07         ` Dmitry Potapov [this message]
2009-11-18 13:30 ` Thomas Rast
2009-11-18 13:31 ` Jason Sewall
2009-11-18 20:36 ` Linus Torvalds

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=20091120150747.GF22556@dpotapov.dyndns.org \
    --to=dpotapov@gmail.com \
    --cc=gdennie@pospeople.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jk@jk.gs \
    /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).