netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [git patches try2] 2.6.x net driver updates
       [not found] <4294BD9C.2050105@pobox.com>
@ 2005-05-25 20:48 ` Linus Torvalds
  2005-05-25 22:59   ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2005-05-25 20:48 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Andrew Morton, Netdev, Linux Kernel



On Wed, 25 May 2005, Jeff Garzik wrote:
>
> Does this work better?

Looks good.

If this was automated, are your changes to git-pull-script generic enough 
to be useful for others, or did you do a totally specialized one for just 
the "lots of heads in the same directory" case?

		Linus

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

* Re: [git patches try2] 2.6.x net driver updates
  2005-05-25 20:48 ` [git patches try2] 2.6.x net driver updates Linus Torvalds
@ 2005-05-25 22:59   ` Jeff Garzik
  2005-05-25 23:03     ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2005-05-25 22:59 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, Netdev, Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 922 bytes --]

Linus Torvalds wrote:
> 
> On Wed, 25 May 2005, Jeff Garzik wrote:
> 
>>Does this work better?
> 
> 
> Looks good.

Groovy.


> If this was automated, are your changes to git-pull-script generic enough 
> to be useful for others, or did you do a totally specialized one for just 
> the "lots of heads in the same directory" case?

Not specialized at all.  I do one pull at a time, so git-pull-script 
suffices with a simple addition to call git-resolve-script with the 
branch as $4, and a simple addition to git-resolve-script to add 'branch 
$foo' to merge_msg.  See attached (note the patch includes my earlier 
'optimization' patch).

On this last run, I actually just ignored git-pull-script and simply ran 
git-resolve-script -- since all my objects are in-tree already, I don't 
need the fetch step:

git-resolve-script $(cat .git/HEAD ) $(cat .git/refs/heads/amd8111) \
    /spare/repo/netdev-2.6 amd8111

	Jeff



[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1666 bytes --]

--- git-resolve-script	2005-05-25 15:21:32.772604549 -0400
+++ /usr/local/bin/git-resolve-script	2005-05-25 13:30:59.568504275 -0400
@@ -7,6 +7,7 @@
 head="$1"
 merge="$2"
 merge_repo="$3"
+merge_name=${4:-HEAD}
 
 : ${GIT_DIR=.git}
 : ${GIT_OBJECT_DIRECTORY="${SHA1_FILE_DIRECTORY-"$GIT_DIR/objects"}"}
@@ -20,7 +21,7 @@
 # but we do want it.
 #
 if [ "$merge_repo" == "" ]; then
-	echo "git-resolve-script <head> <remote> <merge-repo-name>"
+	echo "git-resolve-script <head> <remote> <merge-repo-name> <branch-name>"
 	exit 1
 fi
 
@@ -39,23 +40,23 @@
 	echo "Destroying all noncommitted data!"
 	echo "Kill me within 3 seconds.."
 	sleep 3
-	git-read-tree -m $merge && git-checkout-cache -f -u -a
+	git-read-tree -m $merge && git-checkout-cache -f -a && git-update-cache --refresh
 	echo $merge > "$GIT_DIR"/HEAD
 	git-diff-tree -p ORIG_HEAD HEAD | diffstat -p1
 	exit 0
 fi
 echo "Trying to merge $merge into $head"
 git-read-tree -m $common $head $merge
-merge_msg="Merge of $merge_repo"
+merge_msg="Merge of $merge_repo branch $merge_name"
 result_tree=$(git-write-tree  2> /dev/null)
 if [ $? -ne 0 ]; then
 	echo "Simple merge failed, trying Automatic merge"
 	git-merge-cache git-merge-one-file-script -a
-	merge_msg="Automatic merge of $merge_repo"
+	merge_msg="Automatic merge of $merge_repo branch $merge_name"
 	result_tree=$(git-write-tree) || exit 1
 fi
 result_commit=$(echo "$merge_msg" | git-commit-tree $result_tree -p $head -p $merge)
 echo "Committed merge $result_commit"
 echo $result_commit > "$GIT_DIR"/HEAD
-git-checkout-cache -f -u -a
+git-checkout-cache -f -a && git-update-cache --refresh
 git-diff-tree -p ORIG_HEAD HEAD | diffstat -p1

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

* Re: [git patches try2] 2.6.x net driver updates
  2005-05-25 22:59   ` Jeff Garzik
@ 2005-05-25 23:03     ` Jeff Garzik
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2005-05-25 23:03 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Andrew Morton, Netdev, Linux Kernel

Jeff Garzik wrote:
> Not specialized at all.  I do one pull at a time, so git-pull-script 
> suffices with a simple addition to call git-resolve-script with the 
> branch as $4, and a simple addition to git-resolve-script to add 'branch 

Correction: new $4 arg was added to git-resolve-script, not git-pull-script

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

end of thread, other threads:[~2005-05-25 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4294BD9C.2050105@pobox.com>
2005-05-25 20:48 ` [git patches try2] 2.6.x net driver updates Linus Torvalds
2005-05-25 22:59   ` Jeff Garzik
2005-05-25 23:03     ` Jeff Garzik

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).