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

Re: [PATCH] git-svn: Make create-ignore use git add -f

From
EWEric Wong <normalperson@yhbt.net>
Date
May 5, 2008, 04:04 UTC
Message-ID
<20080505040433.GB13122@untitled>
In-Reply-To
<1209940390-22622-1-git-send-email-hendeby@isy.liu.se>
Gustaf Hendeby <hendeby@isy.liu.se> wrote:
Show 5 quoted lines
> When having a svn:ignore that ignores the .gitignore file the -f
> option to git add must be used to avoid git complaining about adding
> an ignored file and hence stop the process of creating .gitignores.
> 
> Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>
Acked-by: Eric Wong <normalperson@yhbt.net>
Show 19 quoted lines
> ---
>  git-svn.perl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/git-svn.perl b/git-svn.perl
> index 81afb5c..d6d7b1a 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -612,7 +612,7 @@ sub cmd_create_ignore {
>  		print GITIGNORE "$s\n";
>  		close(GITIGNORE)
>  		  or fatal("Failed to close `$ignore': $!");
> -		command_noisy('add', $ignore);
> +		command_noisy('add', '-f', $ignore);
>  	});
>  }
>  
> -- 
> 1.5.5.1.246.gafa4
Previous: Eric Wong
Message 4 of 4 in “git-svn: Make create-ignore use git add -f”
  1. git-svn: Make create-ignore use git add -fGustaf Hendeby, May 4, 2008
  2. Documentation: Add create-ignore to git svn manualGustaf Hendeby, May 4, 2008
  3. Eric WongMay 5, 2008
  4. Eric WongMay 5, 2008

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.