git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] Git v2.0.0-rc0

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2014, 20:12 UTC
Message-ID
<xmqq4n1l3yyf.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140422185829.GB15516@google.com>

The following message is a courtesy copy of an article that has been posted to gmane.comp.version-control.git as well.

Jonathan Nieder <jrnieder@gmail.com> writes:
Show 23 quoted lines
> Hm, perhaps we should introduce a 'no-prefix' option to work around
> this.
> ...
>> |diff --git a/git-svn.perl b/git-svn.perl
>> |index 7349ffea..284f458a 100755
>> |--- a/git-svn.perl
>> |+++ b/git-svn.perl
>> |@@ -149,7 +149,7 @@ my ($_trunk, @_tags, @_branches, $_stdlayout);
>>   my %icv;
>>   my %init_opts = ( 'template=s' => \$_template, 'shared:s' => \$_shared,
>>                     'trunk|T=s' => \$_trunk, 'tags|t=s@' => \@_tags,
>>                     'branches|b=s@' => \@_branches, 'prefix=s' => \$_prefix,
>   +		      'no-prefix' => sub { $_prefix = "" },
>
>>                     'stdlayout|s' => \$_stdlayout,
>>                     'minimize-url|m!' => \$Git::SVN::_minimize_url,
>>                    'no-metadata' => sub { $icv{noMetadata} = 1 },
>
> That way, normal usage of --prefix would still be consistent with
> other git commands that prefer the form with argument attached
> (--prefix=foo, not --prefix foo; see gitcli(7)).
>
> Thoughts?

I do not think that it is a good idea to use "--no-anything" for something that is not a boolean.

I can buy "--old-default-prefix", or "--empty-prefix", but running "git svn --prefix ''" (or "--prefix=''") would be OK and logically consistent anyway (i.e. the option tells us what string to add after "refs/remotes/", and the old default that everybody hated were to use an empty string), so...

Previous: Jonathan NiederNext: Jonathan Nieder
Message 8 of 16 in “[ANNOUNCE] Git v2.0.0-rc0”
  1. Junio C HamanoApr 18, 2014
  2. Johan HerlandApr 19, 2014
  3. Junio C HamanoApr 19, 2014
  4. Felipe ContrerasApr 20, 2014
  5. Junio C HamanoApr 20, 2014
  6. Kyle J. McKayApr 22, 2014
  7. Jonathan NiederApr 22, 2014
  8. Junio C HamanoApr 22, 2014
  9. Jonathan NiederApr 22, 2014
  10. Junio C HamanoApr 22, 2014
  11. Jonathan NiederApr 22, 2014
  12. brian m. carlsonApr 22, 2014
  13. Junio C HamanoApr 22, 2014
  14. Johan HerlandApr 23, 2014
  15. Junio C HamanoApr 23, 2014
  16. Junio C HamanoApr 22, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.