login
Header Space

 
 

Re: [howto] Kernel hacker's guide to git, updated

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Dave Jones <davej@...>
Cc: Anton Altaparmakov <aia21@...>, Jeff Garzik <jgarzik@...>, Linux Kernel <linux-kernel@...>, Git Mailing List <git@...>
Date: Thursday, September 29, 2005 - 5:35 pm

On Thu, 29 Sep 2005, Linus Torvalds wrote:

Ok, disabling "text flowing" seems to have fixed it. It still leaves empty 
spaces at the end of lines when doing normal word-wrapping in the editor 
(and then seems to use those empty spaces as a "marker" for flowing), but 
that's at least just a small silly detail.

So how about this patch now? With it you can do

	git fetch --tags <linus-kernel-repo>

and it should fetch all my tags automatically.

		Linus
---
diff --git a/git-fetch.sh b/git-fetch.sh
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -5,6 +5,8 @@
 _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
 _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
 
+all=
+tags=
 append=
 force=
 update_head_ok=
@@ -17,6 +19,12 @@ do
 	-f|--f|--fo|--for|--forc|--force)
 		force=t
 		;;
+	--tags)
+		tags=t
+		;;
+	--all)
+		all=t
+		;;
 	-u|--u|--up|--upd|--upda|--updat|--update|--update-|--update-h|\
 	--update-he|--update-hea|--update-head|--update-head-|\
 	--update-head-o|--update-head-ok)
@@ -158,7 +166,16 @@ case "$update_head_ok" in
 	;;
 esac
 
-for ref in $(get_remote_refs_for_fetch "$@")
+taglist=
+if [ "$tags$all" ]; then
+	pattern='/refs\/tags/'
+	if [ "$all" ]; then
+		pattern='/refs/'
+	fi
+	taglist=$(git-ls-remote "$remote" | awk "$pattern"' { print $2":"$2 }')
+fi
+
+for ref in $(get_remote_refs_for_fetch "$@" $taglist)
 do
     refs="$refs $ref"
 
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Thu Sep 29, 7:03 am)
Re: [howto] Kernel hacker's guide to git, updated, Dave Jones, (Thu Sep 29, 4:02 pm)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Thu Sep 29, 4:15 pm)
Re: [howto] Kernel hacker's guide to git, updated, Chuck Lever, (Thu Sep 29, 5:23 pm)
Re: [howto] Kernel hacker's guide to git, updated, Junio C Hamano, (Thu Sep 29, 5:04 pm)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Fri Sep 30, 7:15 am)
Re: [howto] Kernel hacker's guide to git, updated, Francois Romieu, (Fri Sep 30, 6:52 pm)
Re: [howto] Kernel hacker's guide to git, updated , Horst von Brand, (Fri Sep 30, 2:13 pm)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Fri Sep 30, 8:17 pm)
Re: [howto] Kernel hacker's guide to git, updated, Erik Mouw, (Fri Sep 30, 8:07 am)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Fri Sep 30, 10:08 am)
Re: [howto] Kernel hacker's guide to git, updated, Oliver Neukum, (Fri Sep 30, 8:02 am)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Fri Sep 30, 9:58 am)
Re: [howto] Kernel hacker's guide to git, updated, Alberto Patino, (Fri Sep 30, 11:10 am)
Re: [howto] Kernel hacker's guide to git, updated, Junio C Hamano, (Fri Sep 30, 7:55 am)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Fri Sep 30, 2:14 pm)
Re: [howto] Kernel hacker's guide to git, updated, Jeff Garzik, (Fri Sep 30, 10:11 am)
Re: [howto] Kernel hacker's guide to git, updated, Anton Altaparmakov, (Thu Sep 29, 4:07 pm)
Re: [howto] Kernel hacker's guide to git, updated, Dave Jones, (Thu Sep 29, 4:11 pm)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 5:14 pm)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 5:26 pm)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 5:35 pm)
Re: [howto] Kernel hacker's guide to git, updated, Dave Jones, (Thu Sep 29, 5:40 pm)
Re: [howto] Kernel hacker's guide to git, updated, Dave Jones, (Thu Sep 29, 5:33 pm)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 5:55 pm)
Re: [howto] Kernel hacker's guide to git, updated , Horst von Brand, (Thu Sep 29, 7:17 pm)
Re: [howto] Kernel hacker's guide to git, updated , Linus Torvalds, (Thu Sep 29, 8:47 pm)
Re: [howto] Kernel hacker's guide to git, updated , Linus Torvalds, (Fri Sep 30, 8:10 pm)
Re: [howto] Kernel hacker's guide to git, updated , Horst von Brand, (Fri Sep 30, 9:58 pm)
Re: [howto] Kernel hacker's guide to git, updated , Linus Torvalds, (Sun Oct 2, 9:03 pm)
Re: [howto] Kernel hacker's guide to git, updated, Junio C Hamano, (Thu Sep 29, 9:54 pm)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 10:36 pm)
Re: [howto] Kernel hacker's guide to git, updated, Anton Altaparmakov, (Thu Sep 29, 6:12 pm)
Re: [howto] Kernel hacker's guide to git, updated, Junio C Hamano, (Thu Sep 29, 7:19 pm)
Re: [howto] Kernel hacker's guide to git, updated, Johannes Schindelin, (Fri Sep 30, 8:22 am)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Thu Sep 29, 6:25 pm)
Re: [howto] Kernel hacker's guide to git, updated, Anton Altaparmakov, (Thu Sep 29, 6:32 pm)
Re: [howto] Kernel hacker's guide to git, updated, Elfyn McBratney, (Thu Sep 29, 5:33 pm)
Re: [howto] Kernel hacker's guide to git, updated, Oliver Neukum, (Thu Sep 29, 3:08 pm)
Re: [howto] Kernel hacker's guide to git, updated, Jon Loeliger, (Thu Sep 29, 3:34 pm)
Re: [howto] Kernel hacker's guide to git, updated, Oliver Neukum, (Thu Sep 29, 3:38 pm)
Re: [howto] Kernel hacker's guide to git, updated, Junio C Hamano, (Fri Sep 30, 3:37 am)
Re: [howto] Kernel hacker's guide to git, updated, Linus Torvalds, (Fri Sep 30, 12:39 pm)
Re: [howto] Kernel hacker's guide to git, updated, Oliver Neukum, (Fri Sep 30, 4:36 am)
Re: [howto] Kernel hacker's guide to git, updated, David Leimbach, (Thu Sep 29, 11:18 am)
Re: [howto] Kernel hacker's guide to git, updated, Alberto Patino, (Thu Sep 29, 12:03 pm)
Re: [howto] Kernel hacker's guide to git, updated, David Leimbach, (Thu Sep 29, 12:13 pm)
speck-geostationary