Re: [PATCH RFC] kconfig: place git SHA1 in .config output if in git tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Cloos
Date: Monday, March 1, 2010 - 6:53 pm

>>>>> "Paul" == Paul E McKenney <paulmck@linux.vnet.ibm.com> writes:

Paul> Agreed!  The "-dirty" modifier for the case of changes not yet
Paul> checked into git looks especially helpful.

JimC> Except that the script calls »git update-index --refresh --unmerged«
JimC> and »git diff-index --name-only HEAD«, both of which are painfully
JimC> slow and resource intensive.

JimC> I'd hate to have that run every time I make a kernel.

Paul> Good point...  Should we have an environment variable that controls
Paul> this behavior?

I wouldn't mind the intial idea: just the abbreviated top of three hash.

I was, next, going to write that CONFIG_LOCALVERSION_AUTO already exists
for that, but LOCALVERSION_AUTO calls scripts/setlocalversion these days
and that is what I'd prefer to avoid.  [SIGH]

Shows how long it has been since I last used it.  I stopped using it
when I was maintaining my .config in git.  Now I maintain .config in a
separate git repo, for the express purpose of avoiding a merge (rather
than a fast forward) when I run git pull.  Something that a local edit
of scripts/setlocalversion will, of course, prevent.

Anyone up for a CONFIG_LOCALVERSION_AUTO_DO_NOT_BOTHER_WITH_DIRTY? ☺

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RFC] kconfig: place git SHA1 in .config output ..., Geert Uytterhoeven, (Mon Mar 1, 3:10 am)
Re: [PATCH RFC] kconfig: place git SHA1 in .config output ..., Paul E. McKenney, (Mon Mar 1, 11:16 am)
Re: [PATCH RFC] kconfig: place git SHA1 in .config output ..., James Cloos, (Mon Mar 1, 6:53 pm)
Re: [PATCH RFC] kconfig: place git SHA1 in .config output ..., Paul E. McKenney, (Mon Mar 1, 10:21 pm)