# eth

8 messages from 2005-11-14 to 2005-11-15. Participants: Kevin Geiss, Junio C Hamano, Martin Langhoff.
Thread: https://gitlist.dev/t/2499

## Kevin Geiss, 2005-11-14 16:40

Subject: eth
Message-ID: <20051114164047.GB9131@raven.localdomain>
URL: https://gitlist.dev/e/20051114164047.GB9131%40raven.localdomain

```
---

 git-cvsexportcommit.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

applies-to: e604d20cd75e71750e8316348c988ef0296b3ec5
224d4f4897ea47425aafc6d491f2a0762e683a4c
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index 50b041c..5bce39c 100755
--- a/git-cvsexportcommit.perl
+++ b/git-cvsexportcommit.perl
@@ -4,6 +4,7 @@ use strict;
 use Getopt::Std;
 use File::Temp qw(tempdir);
 use Data::Dumper;
+use File::Basename qw(basename);
 
 unless ($ENV{GIT_DIR} && -r $ENV{GIT_DIR}){
     die "GIT_DIR is not defined or is unreadable";
@@ -206,8 +207,7 @@ if ($opt_c) {
 }
 sub usage {
 	print STDERR <<END;
-Usage: GIT_DIR=/path/to/.gi ${\basename $0}      # fetch/update GIT from CVS
-       [-h] [-p] [ parent ] commit
+Usage: GIT_DIR=/path/to/.git ${\basename $0} [-h] [-p] [-v] [-c] [ parent ] commit
 END
 	exit(1);
 }
---
0.99.9.GIT

```

## Kevin Geiss, 2005-11-14 16:45

Subject: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <20051114164505.GF9131@raven.localdomain>
URL: https://gitlist.dev/e/20051114164505.GF9131%40raven.localdomain
In-Reply-To: <20051114164047.GB9131@raven.localdomain>

```
---

 git-cvsexportcommit.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

applies-to: e604d20cd75e71750e8316348c988ef0296b3ec5
224d4f4897ea47425aafc6d491f2a0762e683a4c
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index 50b041c..5bce39c 100755
--- a/git-cvsexportcommit.perl
+++ b/git-cvsexportcommit.perl
@@ -4,6 +4,7 @@ use strict;
 use Getopt::Std;
 use File::Temp qw(tempdir);
 use Data::Dumper;
+use File::Basename qw(basename);
 
 unless ($ENV{GIT_DIR} && -r $ENV{GIT_DIR}){
     die "GIT_DIR is not defined or is unreadable";
@@ -206,8 +207,7 @@ if ($opt_c) {
 }
 sub usage {
 	print STDERR <<END;
-Usage: GIT_DIR=/path/to/.gi ${\basename $0}      # fetch/update GIT from CVS
-       [-h] [-p] [ parent ] commit
+Usage: GIT_DIR=/path/to/.git ${\basename $0} [-h] [-p] [-v] [-c] [ parent ] commit
 END
 	exit(1);
 }
---
0.99.9.GIT

```

## Kevin Geiss, 2005-11-14 16:47

Subject: Re: eth
Message-ID: <20051114164737.GG9131@raven.localdomain>
URL: https://gitlist.dev/e/20051114164737.GG9131%40raven.localdomain
In-Reply-To: <20051114164047.GB9131@raven.localdomain>

```
oops, I munged up the subject on this one. I resent it with '1/1' in the subject. :(

On Mon, Nov 14, 2005 at 09:40:47AM -0700, Kevin Geiss wrote:

```

## Kevin Geiss, 2005-11-14 20:24

Subject: Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <972B451D-88B9-4ACB-A91C-BE7AAF12C206@desertsol.com>
URL: https://gitlist.dev/e/972B451D-88B9-4ACB-A91C-BE7AAF12C206%40desertsol.com
In-Reply-To: <20051114164505.GF9131@raven.localdomain>

```
this was supposed to be 1/4 of course.

```

## Junio C Hamano, 2005-11-14 22:14

Subject: Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <7vbr0mx4fj.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vbr0mx4fj.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20051114164505.GF9131@raven.localdomain>

```
Kevin Geiss <kevin@desertsol.com> writes:

>  sub usage {
>  	print STDERR <<END;
> -Usage: GIT_DIR=/path/to/.gi ${\basename $0}      # fetch/update GIT from CVS
> -       [-h] [-p] [ parent ] commit
> +Usage: GIT_DIR=/path/to/.git ${\basename $0} [-h] [-p] [-v] [-c] [ parent ] commit
>  END
>  	exit(1);
>  }

I hate to be nitpicky, but this slurps in File::Basename
(9Kbytes) only to shorten the displayed command name.

I personally do not like programs that shorten $0 (or in C
argv[0]) when they identify themselves.  This is probably just
me, but I was bitten by such programs too many times while
debugging them, after wasting too many hours only to find that I
was not running the executable I thought I was running but
something else that happened to be earlier on my PATH X-<.

```

## Martin Langhoff, 2005-11-14 22:20

Subject: Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <46a038f90511141420u11e396d3q9a6710c79abe0ca3@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90511141420u11e396d3q9a6710c79abe0ca3%40mail.gmail.com
In-Reply-To: <7vbr0mx4fj.fsf@assigned-by-dhcp.cox.net>

```
On 11/15/05, Junio C Hamano <junkio@cox.net> wrote:
> I hate to be nitpicky, but this slurps in File::Basename
> (9Kbytes) only to shorten the displayed command name.

Fair enough -- I'll leave that one up to you. I'm happy with Kevin's
patches -- what's the ideal workflow for this? Is the sign-off line
important enough that I should setup a public repo for you to pull
from?

BTW, File::Basename is a standard library usually installed w perl -- 
it shouldn't add any painful dependencies. Not sure if that matters.


martin

```

## Junio C Hamano, 2005-11-14 23:04

Subject: Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <7vsltyvnjf.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vsltyvnjf.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <46a038f90511141420u11e396d3q9a6710c79abe0ca3@mail.gmail.com>

```
Martin Langhoff <martin.langhoff@gmail.com> writes:

> ... I'm happy with Kevin's patches -- what's the ideal
> workflow for this? Is the sign-off line important enough that
> I should setup a public repo for you to pull from?

Given that you are far more familiar with that part of the code,
and I suspect I'd be asking your help in archimport as well, a
repo I can pull from would be more preferable (and sign-off by
you is certainly an added bonus).  If a public repo is too much
hassle, however, e-mail forwarding is perfectly fine as well.
Your choice.

BTW, there is no "mana" points involved in deciding if I
directly pull from somewhere.  Even if that were the case, you
have accumulated enough of them already ;-).

> BTW, File::Basename is a standard library usually installed w perl -- 
> it shouldn't add any painful dependencies. Not sure if that matters.

Although some might find "${\function}" expansion too cute for
their taste, Keven's code is fine as-is for me.  I launched the
baloon just wanting to see what others have to say ;-).

```

## Martin Langhoff, 2005-11-15 05:10

Subject: Re: [PATCH 1/1] git-cvsexportcommit.perl: Fix usage() output.
Message-ID: <46a038f90511142110x3aa22882j768f33ec1a882dab@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f90511142110x3aa22882j768f33ec1a882dab%40mail.gmail.com
In-Reply-To: <7vsltyvnjf.fsf@assigned-by-dhcp.cox.net>

```
On 11/15/05, Junio C Hamano <junkio@cox.net> wrote:
> Given that you are far more familiar with that part of the code,
> and I suspect I'd be asking your help in archimport as well, a
> repo I can pull from would be more preferable (and sign-off by
> you is certainly an added bonus).  If a public repo is too much
> hassle, however, e-mail forwarding is perfectly fine as well.
> Your choice.

It is _easy_. I've setup a server for git-related paraphernalia at
work already ;)

The URL is:
  http://locke.catalyst.net.nz/git/git-martinlanghoff.git/#tojunio

gitweb at:
  http://locke.catalyst.net.nz/gitweb?p=git-martinlanghoff.git;a=summary

That gitweb has per-branch RSS feeds, if you are an rss junkio ;-) you
can just subscribe to it...

A word of warning, though: those branches rewind/rebase often, and I
won't apologise about it. You should be able to just delete your
'martinlanghoff' head and refetch it. Anyone else reading this... just
_don't_ base your work on my branch as it's bound to break.

> BTW, there is no "mana" points involved in deciding if I
> directly pull from somewhere.  Even if that were the case, you
> have accumulated enough of them already ;-).

:-)

/me is happy that you've forgotten about my brown-paper-bag patch with
a random character in the middle!

> Although some might find "${\function}" expansion too cute for
> their taste, Keven's code is fine as-is for me.  I launched the
> baloon just wanting to see what others have to say ;-).

Fine w me -- TIMTOWDI. I do understand, however, your interest in
having full paths in the usage line to make debugging easier. Whatever
is consistent with the project in general.

cheers,


martin

```
