* Two quick patches for guilt v0.30
@ 2008-07-08 0:03 Theodore Ts'o
2008-07-08 0:03 ` [PATCH 1/2] must_commit_first: Make sure the index is up to date Theodore Ts'o
0 siblings, 1 reply; 8+ messages in thread
From: Theodore Ts'o @ 2008-07-08 0:03 UTC (permalink / raw)
To: jeffpc; +Cc: git
Hi Jeff, here are two quick patches for guilt, versus v0.30. The
second is needed for people using the latest git (on the master
branch), so it'd be great if you could get this out.
Thanks, regards,
- Ted
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] must_commit_first: Make sure the index is up to date
2008-07-08 0:03 Two quick patches for guilt v0.30 Theodore Ts'o
@ 2008-07-08 0:03 ` Theodore Ts'o
2008-07-08 0:03 ` [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path Theodore Ts'o
0 siblings, 1 reply; 8+ messages in thread
From: Theodore Ts'o @ 2008-07-08 0:03 UTC (permalink / raw)
To: jeffpc; +Cc: git, Theodore Ts'o
git diff-files can be confused if the index is not up to date, so make
sure it is updated first.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
guilt | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/guilt b/guilt
index 50414a4..cdf4e9b 100755
--- a/guilt
+++ b/guilt
@@ -495,6 +495,7 @@ s/^\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\) \([0-9]\{2\}\):\([0-9]\{2\}\):\(
# usage: must_commit_first
must_commit_first()
{
+ git update-index --refresh --unmerged -q > /dev/null
[ `git diff-files | wc -l` -eq 0 ]
return $?
}
--
1.5.6.1.205.ge2c7.dirty
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 0:03 ` [PATCH 1/2] must_commit_first: Make sure the index is up to date Theodore Ts'o
@ 2008-07-08 0:03 ` Theodore Ts'o
2008-07-08 0:32 ` Josef 'Jeff' Sipek
0 siblings, 1 reply; 8+ messages in thread
From: Theodore Ts'o @ 2008-07-08 0:03 UTC (permalink / raw)
To: jeffpc; +Cc: git, Theodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
guilt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/guilt b/guilt
index cdf4e9b..d30d35a 100755
--- a/guilt
+++ b/guilt
@@ -23,7 +23,7 @@ esac
# we change directories ourselves
SUBDIRECTORY_OK=1
-. git-sh-setup
+. $(git --exec-path)/git-sh-setup
#
# Git version check
--
1.5.6.1.205.ge2c7.dirty
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 0:03 ` [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path Theodore Ts'o
@ 2008-07-08 0:32 ` Josef 'Jeff' Sipek
2008-07-08 0:56 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-07-08 0:32 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: git
On Mon, Jul 07, 2008 at 08:03:12PM -0400, Theodore Ts'o wrote:
> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
> ---
> guilt | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/guilt b/guilt
> index cdf4e9b..d30d35a 100755
> --- a/guilt
> +++ b/guilt
> @@ -23,7 +23,7 @@ esac
> # we change directories ourselves
> SUBDIRECTORY_OK=1
>
> -. git-sh-setup
> +. $(git --exec-path)/git-sh-setup
This seems wrong.
jeffpc@freyr:~$ git --version
git version 1.5.6.2.247.g923712
jeffpc@freyr:~$ git --exec-path
/home/jeffpc/git-bin/bin
AFAICT, it should be:
/home/jeffpc/git-bin/libexec/git-core
(which contains git-sh-setup)
Josef 'Jeff' Sipek.
--
I think there is a world market for maybe five computers.
- Thomas Watson, chairman of IBM, 1943.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 0:32 ` Josef 'Jeff' Sipek
@ 2008-07-08 0:56 ` Junio C Hamano
2008-07-08 1:14 ` Josef 'Jeff' Sipek
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2008-07-08 0:56 UTC (permalink / raw)
To: Josef 'Jeff' Sipek; +Cc: Theodore Ts'o, git
"Josef 'Jeff' Sipek" <jeffpc@josefsipek.net> writes:
> On Mon, Jul 07, 2008 at 08:03:12PM -0400, Theodore Ts'o wrote:
>> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
>> ---
>> guilt | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/guilt b/guilt
>> index cdf4e9b..d30d35a 100755
>> --- a/guilt
>> +++ b/guilt
>> @@ -23,7 +23,7 @@ esac
>> # we change directories ourselves
>> SUBDIRECTORY_OK=1
>>
>> -. git-sh-setup
>> +. $(git --exec-path)/git-sh-setup
>
> This seems wrong.
>
> jeffpc@freyr:~$ git --version
> git version 1.5.6.2.247.g923712
> jeffpc@freyr:~$ git --exec-path
> /home/jeffpc/git-bin/bin
Hmm, it is yours that look wrong.
With 1.6.0 preview (aka 'master'):
$ git --version
git version 1.5.6.2.255.gbed62
$ git --exec-path
/home/junio/git-master/libexec/git-core
With 1.5.6 maintenance track (aka 'maint'):
$ ~/git-maint/bin/git --version
git version 1.5.6.2.15.g39f31
$ ~/git-maint/bin/git --exec-path
/home/junio/git-maint/bin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 0:56 ` Junio C Hamano
@ 2008-07-08 1:14 ` Josef 'Jeff' Sipek
2008-07-08 1:17 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-07-08 1:14 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Theodore Ts'o, git
On Mon, Jul 07, 2008 at 05:56:54PM -0700, Junio C Hamano wrote:
> "Josef 'Jeff' Sipek" <jeffpc@josefsipek.net> writes:
...
> > jeffpc@freyr:~$ git --version
> > git version 1.5.6.2.247.g923712
> > jeffpc@freyr:~$ git --exec-path
> > /home/jeffpc/git-bin/bin
>
> Hmm, it is yours that look wrong.
Ok.
> With 1.6.0 preview (aka 'master'):
>
> $ git --version
> git version 1.5.6.2.255.gbed62
A fresh clone (from master.kernel.org over ssh) gets me:
$ git describe
v1.5.6.2-247-g9237122
$ git --version
git version 1.5.6.GIT
$ git --exec-path
/home/jeffpc/git-bin/bin
You seem to have a different HEAD for the master branch than I do.
Josef 'Jeff' Sipek.
--
Don't drink and derive. Alcohol and algebra don't mix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 1:14 ` Josef 'Jeff' Sipek
@ 2008-07-08 1:17 ` Junio C Hamano
2008-07-08 1:28 ` Josef 'Jeff' Sipek
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2008-07-08 1:17 UTC (permalink / raw)
To: Josef 'Jeff' Sipek; +Cc: Theodore Ts'o, git
"Josef 'Jeff' Sipek" <jeffpc@josefsipek.net> writes:
> A fresh clone (from master.kernel.org over ssh) gets me:
>
> $ git describe
> v1.5.6.2-247-g9237122
> $ git --version
> git version 1.5.6.GIT
> $ git --exec-path
> /home/jeffpc/git-bin/bin
>
> You seem to have a different HEAD for the master branch than I do.
Oh, my private 'master' almost always is ahead of the public one after
work.
But I do not have any new changes around this area lately. Promise ;-).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path
2008-07-08 1:17 ` Junio C Hamano
@ 2008-07-08 1:28 ` Josef 'Jeff' Sipek
0 siblings, 0 replies; 8+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-07-08 1:28 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Theodore Ts'o, git
On Mon, Jul 07, 2008 at 06:17:19PM -0700, Junio C Hamano wrote:
> "Josef 'Jeff' Sipek" <jeffpc@josefsipek.net> writes:
>
> > A fresh clone (from master.kernel.org over ssh) gets me:
> >
> > $ git describe
> > v1.5.6.2-247-g9237122
> > $ git --version
> > git version 1.5.6.GIT
> > $ git --exec-path
> > /home/jeffpc/git-bin/bin
> >
> > You seem to have a different HEAD for the master branch than I do.
>
> Oh, my private 'master' almost always is ahead of the public one after
> work.
>
> But I do not have any new changes around this area lately. Promise ;-).
Heh.
Alright, mystery solved. I had a GIT_EXEC_PATH set. Removing it from my
bash_profile makes everything work just fine.
Sorry for the noise.
Jeff.
--
Penguin : Linux version 2.6.25.4 on an i386 machine (6135.77 BogoMips).
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-07-08 1:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 0:03 Two quick patches for guilt v0.30 Theodore Ts'o
2008-07-08 0:03 ` [PATCH 1/2] must_commit_first: Make sure the index is up to date Theodore Ts'o
2008-07-08 0:03 ` [PATCH 2/2] Make guilt work even after git-sh-setup is moved out of the user's path Theodore Ts'o
2008-07-08 0:32 ` Josef 'Jeff' Sipek
2008-07-08 0:56 ` Junio C Hamano
2008-07-08 1:14 ` Josef 'Jeff' Sipek
2008-07-08 1:17 ` Junio C Hamano
2008-07-08 1:28 ` Josef 'Jeff' Sipek
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).