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

Re: [PATCH v2] git-svn: mention `svn:global-ignores` in help+docs

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2024, 18:55 UTC
Message-ID
<xmqqplqbx7cf.fsf@gitster.g>
In-Reply-To
<2edfbfad-bfae-4fe1-8f26-4310fc54b2a0@comqi.com>
Alex Galvin <agalvin@comqi.com> writes:
Show 21 quoted lines
> On 2024-08-13 6:33 p.m., Junio C Hamano wrote:
>>> diff --git a/git-svn.perl b/git-svn.perl
>>> index a2a46608c9b..d8dc485e50d 100755
>>> --- a/git-svn.perl
>>> +++ b/git-svn.perl
>>> @@ -219,11 +219,11 @@ my %cmd = (
>>>   	                "Set an SVN repository to a git tree-ish",
>>>   			{ 'stdin' => \$_stdin, %cmt_opts, %fc_opts, } ],
>>>   	'create-ignore' => [ \&cmd_create_ignore,
>>> -			     'Create a .gitignore persvn:ignore',
>>> +			     "Create a .gitignore per directory with an SVN ignore property",
>> Hmph.  Is it intentional that this "create" side uses a single
>> property while ...
>> ... the other "show" side talks about "ignore properties" (plural),
>> implying that both svn:ignore and svn:global-ignores may get
>> involved?
>
> I was trying to be precise that the create command makes one .gitignore
> file in each directory it visits, regardless if that directory only has
> one of the attributes or both. Would using "any SVN ignore property"
> instead of "a SVN ignore property" make this clear?

You are creating a .gitignore file per each directory that has some "ignore" properties on the subversion side, so I do not have any trouble with "_a_ .gitignore" being singular in the description.

And you anticipate that each such directory has one or more [*] svn:ignore or svn:global-ignores properties attached to it, and that was why my reading hiccuped after seeing "with _an_ SVN ignore property".

    Side note: * if there is 0 such properties given to the
    directory, you obviously do not muck with .gitignore file in the
    directory.

So I am not sure how much difference "any/a" before "SVN ignore property" makes.

Thanks.
Previous: Alex GalvinNext: Alex Galvin via GitGitGadget
Message 7 of 9 in “git-svn: mention `svn:globalignores` in help+docs”
  1. git-svn: mention `svn:globalignores` in help+docsAlex Galvin via GitGitGadget, Aug 12, 2024
  2. Junio C HamanoAug 13, 2024
  3. Alex GalvinAug 13, 2024
  4. git-svn: mention `svn:global-ignores` in help+docsAlex Galvin via GitGitGadget, Aug 13, 2024
  5. Junio C HamanoAug 13, 2024
  6. Alex GalvinAug 14, 2024
  7. Junio C HamanoAug 14, 2024
  8. git-svn: mention `svn:global-ignores` in help+docsAlex Galvin via GitGitGadget, Aug 14, 2024
  9. Junio C HamanoAug 14, 2024

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.