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

Re: [PATCH] git-svn: Support svn:global-ignores property

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 16, 2013, 22:23 UTC
Message-ID
<20131216222356.GA13115@dcvr.yhbt.net>
In-Reply-To
<1385036908-10392-1-git-send-email-margtu-fivt@ya.ru>
Aleksey Vasenev <margtu-fivt@ya.ru> wrote:
> ---
What Thomas said about commit messages.
Note: I hardly use git-svn or SVN anymore and don't pay attention
to SVN changes.
Some style nitpicks:
Show 7 quoted lines
> @@ -1304,16 +1318,20 @@ sub cmd_create_ignore {
>  		# which git won't track
>  		mkpath([$path]) unless -d $path;
>  		my $ignore = $path . '.gitignore';
> -		my $s = $props->{'svn:ignore'} or return;
> +		my $s = &get_svn_ignore($props, 'svn:ignore');
> +		my $s_global = &get_svn_ignore($props, 'svn:global-ignores');

&sub(...) convention isn't consistent with the rest of our Perl code. Do this instead:

		my $s = get_svn_ignore($props, 'svn:ignore');
		my $s_global = get_svn_ignore($props, 'svn:global-ignores');
> +		$s or $s_global or return;
Precedence should be more explicit:
		($s || $s_global) or return;
Likewise for cmd_show_ignore.  Thanks.
Previous: Thomas Rast
Message 4 of 4 in “git-svn: Support svn:global-ignores property”
  1. git-svn: Support svn:global-ignores propertyAleksey Vasenev, Nov 21, 2013
  2. git-svn: Support svn:global-ignores propertyAleksey Vasenev, Nov 21, 2013
  3. Thomas RastNov 24, 2013
  4. Eric WongDec 16, 2013

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.