# [pasky] recent changes to gitdiff.sh

3 messages from 2005-04-18 to 2005-04-18. Participants: Martin Schlemmer, Petr Baudis.
Thread: https://gitlist.dev/t/100

## Martin Schlemmer, 2005-04-18 10:40

Subject: [pasky] recent changes to gitdiff.sh
Message-ID: <1113820808.16288.9.camel@nosferatu.lan>
URL: https://gitlist.dev/e/1113820808.16288.9.camel%40nosferatu.lan

```
Hi,

I see the recent changes to gitdiff.sh requires you to pass -r (git diff
-r local:$tracking) even if you separate the branches via ':'.  Is this
intended (seems like it)?  If so, then gittrack.sh, gitpull.sh and
gitmerge.sh needs to be updated ...

(I did not want to add a patch as I am not sure which it is)


Thanks,

-- 
Martin Schlemmer


```

## Petr Baudis, 2005-04-18 10:40

Subject: Re: [pasky] recent changes to gitdiff.sh
Message-ID: <20050418104038.GM1461@pasky.ji.cz>
URL: https://gitlist.dev/e/20050418104038.GM1461%40pasky.ji.cz
In-Reply-To: <1113820808.16288.9.camel@nosferatu.lan>

```
Dear diary, on Mon, Apr 18, 2005 at 12:40:08PM CEST, I got a letter
where Martin Schlemmer <azarah@nosferatu.za.org> told me that...
> Hi,

Hello,

> I see the recent changes to gitdiff.sh requires you to pass -r (git diff
> -r local:$tracking) even if you separate the branches via ':'.  Is this
> intended (seems like it)?

yes. This brings the usage style in sync with the rest of the world. :-)

> If so, then gittrack.sh, gitpull.sh and gitmerge.sh needs to be
> updated ...

I hopes I updated all the places. If I missed anything, please say what.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

```

## Martin Schlemmer, 2005-04-18 10:57

Subject: Re: [pasky] recent changes to gitdiff.sh
Message-ID: <1113821846.16288.15.camel@nosferatu.lan>
URL: https://gitlist.dev/e/1113821846.16288.15.camel%40nosferatu.lan
In-Reply-To: <20050418104038.GM1461@pasky.ji.cz>

```
On Mon, 2005-04-18 at 12:40 +0200, Petr Baudis wrote:
> Dear diary, on Mon, Apr 18, 2005 at 12:40:08PM CEST, I got a letter
> where Martin Schlemmer <azarah@nosferatu.za.org> told me that...
> > Hi,
> 
> Hello,
> 
> > I see the recent changes to gitdiff.sh requires you to pass -r (git diff
> > -r local:$tracking) even if you separate the branches via ':'.  Is this
> > intended (seems like it)?
> 
> yes. This brings the usage style in sync with the rest of the world. :-)
> 
> > If so, then gittrack.sh, gitpull.sh and gitmerge.sh needs to be
> > updated ...
> 
> I hopes I updated all the places. If I missed anything, please say what.
> 

Update calls to gitdiff.sh to include the '-r' switch.

Signed-off-by: Martin Schlemmer <azarah@nosferatu.za.org>

gitmerge.sh: 7ea441e584d603463fb1b83991b88f63a3895cff
--- 1/gitmerge.sh
+++ 2/gitmerge.sh       2005-04-18 12:55:34.000000000 +0200
@@ -67,7 +67,7 @@
 fi
 update-cache --refresh

-gitdiff.sh "$base":"$branch" | gitapply.sh
+gitdiff.sh -r "$base":"$branch" | gitapply.sh

 cat >&2 <<__END__
 Please inspect the merge in the ,,merge/ subdirectory. Commit from that
gitpull.sh: 9bda6555a1dafc1db762bc46db60d2a9485dc523
--- 1/gitpull.sh
+++ 2/gitpull.sh        2005-04-18 12:55:34.000000000 +0200
@@ -73,7 +73,7 @@
                gitmerge.sh -b "$orig_head" "$new_head"

        else
-               gitdiff.sh "$orig_head":"$new_head" | gitapply.sh
+               gitdiff.sh -r "$orig_head":"$new_head" | gitapply.sh
                read-tree $(tree-id $new_head)

                echo $new_head >.git/HEAD
gittrack.sh: 30654380c10edde32def8e5fa2e2c956fbff3d58
--- 1/gittrack.sh
+++ 2/gittrack.sh       2005-04-18 12:55:34.000000000 +0200
@@ -50,7 +50,7 @@
        echo $name >.git/tracking

        read-tree $(tree-id "$name")
-       gitdiff.sh local:"$name" | gitapply.sh
+       gitdiff.sh -r local:"$name" | gitapply.sh
        update-cache --refresh

 else
@@ -60,7 +60,7 @@
                die "tracked \"$tracking\" branch missing!"

        if [ -s ".git/HEAD.local" ]; then
-               gitdiff.sh "$tracking":local | gitapply.sh
+               gitdiff.sh -r "$tracking":local | gitapply.sh
                read-tree $(tree-id local)
                update-cache --refresh



-- 
Martin Schlemmer



gitmerge.sh: 7ea441e584d603463fb1b83991b88f63a3895cff
--- 1/gitmerge.sh
+++ 2/gitmerge.sh	2005-04-18 12:55:34.000000000 +0200
@@ -67,7 +67,7 @@
 fi
 update-cache --refresh
 
-gitdiff.sh "$base":"$branch" | gitapply.sh
+gitdiff.sh -r "$base":"$branch" | gitapply.sh
 
 cat >&2 <<__END__
 Please inspect the merge in the ,,merge/ subdirectory. Commit from that
gitpull.sh: 9bda6555a1dafc1db762bc46db60d2a9485dc523
--- 1/gitpull.sh
+++ 2/gitpull.sh	2005-04-18 12:55:34.000000000 +0200
@@ -73,7 +73,7 @@
 		gitmerge.sh -b "$orig_head" "$new_head"
 
 	else
-		gitdiff.sh "$orig_head":"$new_head" | gitapply.sh
+		gitdiff.sh -r "$orig_head":"$new_head" | gitapply.sh
 		read-tree $(tree-id $new_head)
 
 		echo $new_head >.git/HEAD
gittrack.sh: 30654380c10edde32def8e5fa2e2c956fbff3d58
--- 1/gittrack.sh
+++ 2/gittrack.sh	2005-04-18 12:55:34.000000000 +0200
@@ -50,7 +50,7 @@
 	echo $name >.git/tracking
 
 	read-tree $(tree-id "$name")
-	gitdiff.sh local:"$name" | gitapply.sh
+	gitdiff.sh -r local:"$name" | gitapply.sh
 	update-cache --refresh
 
 else
@@ -60,7 +60,7 @@
 		die "tracked \"$tracking\" branch missing!"
 
 	if [ -s ".git/HEAD.local" ]; then
-		gitdiff.sh "$tracking":local | gitapply.sh
+		gitdiff.sh -r "$tracking":local | gitapply.sh
 		read-tree $(tree-id local)
 		update-cache --refresh
 

```
