From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, zippel@linux-m68k.org,
mingo@elte.hu, akpm@linux-foundation.org
Subject: Re: [PATCH RFC] kconfig: place git SHA1 in .config output if in git tree
Date: Mon, 1 Mar 2010 08:48:00 -0800 [thread overview]
Message-ID: <20100301164800.GC6758@linux.vnet.ibm.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1003010812410.3616@localhost.localdomain>
On Mon, Mar 01, 2010 at 08:22:15AM -0800, Linus Torvalds wrote:
>
>
> On Sun, 28 Feb 2010, Paul E. McKenney wrote:
> >
> > Uses "git log" to print the hash.
>
> Please don't use "git log" for something like this.
>
> Sure, it works, but it's kind of silly to say "I want a log, except I want
> only a single entry, and btw, I don't actually even want the log entry for
> that single entry at all, just the hash".
>
> It boils down to "I want a log, except with none of the log part". It
> should make you go "Do I really want a log"?
>
> If you really want the hash, maybe just using "git rev-parse HEAD" would
> do it.
>
> However, in this case I think _any_ of those would be wrong. Wouldn't it
> make sense to use the same thing that we already compute for 'uname'
> (scripts/setlocalversion)? Especially as that one already knows how to
> handle other SCM's too (ie the whole hg/svn parts).
>
> That script also ends up using a nicer format, ie it uses "git describe"
> to give a better idea of where it all is.
Agreed! The "-dirty" modifier for the case of changes not yet
checked into git looks especially helpful. Geert Uytterhoeven already
straightened me out on this one, and I posted an updated patch that
uses scripts/setlocalversion (as a reply to his email).
Still learning about git, and I suspect that I always will be in that
state. ;-)
Thanx, Paul
next prev parent reply other threads:[~2010-03-01 16:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-01 4:22 [PATCH RFC] kconfig: place git SHA1 in .config output if in git tree Paul E. McKenney
2010-03-01 8:34 ` Ingo Molnar
2010-03-01 9:42 ` Frans Pop
2010-03-01 10:10 ` Geert Uytterhoeven
2010-03-01 16:27 ` Paul E. McKenney
2010-03-01 16:53 ` Frans Pop
2010-03-01 18:16 ` Paul E. McKenney
2010-03-01 20:29 ` Frans Pop
2010-03-02 1:16 ` Paul E. McKenney
2010-03-02 15:19 ` Frans Pop
2010-03-03 0:01 ` Paul E. McKenney
2010-03-03 0:42 ` Frans Pop
2010-03-03 2:19 ` Paul E. McKenney
2010-03-01 16:22 ` Linus Torvalds
2010-03-01 16:48 ` Paul E. McKenney [this message]
2010-03-01 20:46 ` James Cloos
2010-03-02 1:20 ` Paul E. McKenney
2010-03-02 1:53 ` James Cloos
2010-03-02 5:21 ` Paul E. McKenney
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=20100301164800.GC6758@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@linux-foundation.org \
--cc=zippel@linux-m68k.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.