From: Eric Wong <normalperson@yhbt.net>
To: Gustaf Hendeby <hendeby@isy.liu.se>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] git-svn: Make create-ignore use git add -f
Date: Sun, 4 May 2008 21:04:33 -0700 [thread overview]
Message-ID: <20080505040433.GB13122@untitled> (raw)
In-Reply-To: <1209940390-22622-1-git-send-email-hendeby@isy.liu.se>
Gustaf Hendeby <hendeby@isy.liu.se> wrote:
> 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>
> ---
> 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
prev parent reply other threads:[~2008-05-05 4:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 22:33 [PATCH] git-svn: Make create-ignore use git add -f Gustaf Hendeby
2008-05-04 22:33 ` [PATCH] Documentation: Add create-ignore to git svn manual Gustaf Hendeby
2008-05-05 4:04 ` Eric Wong
2008-05-05 4:04 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505040433.GB13122@untitled \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hendeby@isy.liu.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.