All of lore.kernel.org
 help / color / mirror / Atom feed
* Make kernel -dirty naming optional
@ 2006-09-22 12:02 Frederik Deweerdt
  2006-09-22 10:49 ` Erik Mouw
  2006-09-24  9:00 ` Sam Ravnborg
  0 siblings, 2 replies; 7+ messages in thread
From: Frederik Deweerdt @ 2006-09-22 12:02 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel

Hi Sam,

Could you consider applying this patch (or indicate me a better way to
do it). It can be handy to be able to keep the naming independent of
git.

Thanks,
Frederik



diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 82e4993..62f2fef 100644
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -9,7 +9,7 @@ usage() {
 cd "${1:-.}" || usage
 
 # Check for git and a git repo.
-if head=`git rev-parse --verify HEAD 2>/dev/null`; then
+if [ -z "${IGNORE_GIT}" ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
 	# Do we have an untagged version?
 	if git name-rev --tags HEAD | grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
 		printf '%s%s' -g `echo "$head" | cut -c1-8`


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-02 10:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-22 12:02 Make kernel -dirty naming optional Frederik Deweerdt
2006-09-22 10:49 ` Erik Mouw
2006-09-24  9:07   ` Sam Ravnborg
2006-09-24 10:11     ` Erik Mouw
2006-09-25 21:44       ` Junio C Hamano
2006-10-02 10:51         ` Erik Mouw
2006-09-24  9:00 ` Sam Ravnborg

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.