git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: Make create-ignore use git add -f
@ 2008-05-04 22:33 Gustaf Hendeby
  2008-05-04 22:33 ` [PATCH] Documentation: Add create-ignore to git svn manual Gustaf Hendeby
  2008-05-05  4:04 ` [PATCH] git-svn: Make create-ignore use git add -f Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Gustaf Hendeby @ 2008-05-04 22:33 UTC (permalink / raw)
  To: git; +Cc: gitster, normalperson, Gustaf Hendeby

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>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] Documentation: Add create-ignore to git svn manual
  2008-05-04 22:33 [PATCH] git-svn: Make create-ignore use git add -f Gustaf Hendeby
@ 2008-05-04 22:33 ` Gustaf Hendeby
  2008-05-05  4:04   ` Eric Wong
  2008-05-05  4:04 ` [PATCH] git-svn: Make create-ignore use git add -f Eric Wong
  1 sibling, 1 reply; 4+ messages in thread
From: Gustaf Hendeby @ 2008-05-04 22:33 UTC (permalink / raw)
  To: git; +Cc: gitster, normalperson, Gustaf Hendeby


Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>
---
 Documentation/git-svn.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index bec9acc..f4ba105 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -188,6 +188,12 @@ All arguments are passed directly to `git blame'.
 	commit.  All merging is assumed to have taken place
 	independently of git-svn functions.
 
+'create-ignore'::
+
+	Recursively finds the svn:ignore property on directories and
+	creates matching .gitignore files. The resulting files are staged to
+	be committed, but are not committed.
+
 'show-ignore'::
 	Recursively finds and lists the svn:ignore property on
 	directories.  The output is suitable for appending to
-- 
1.5.5.1.246.gafa4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Documentation: Add create-ignore to git svn manual
  2008-05-04 22:33 ` [PATCH] Documentation: Add create-ignore to git svn manual Gustaf Hendeby
@ 2008-05-05  4:04   ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2008-05-05  4:04 UTC (permalink / raw)
  To: Gustaf Hendeby; +Cc: git, gitster

Gustaf Hendeby <hendeby@isy.liu.se> wrote:
> 
> Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>

Acked-by: Eric Wong <normalperson@yhbt.net>

> ---
>  Documentation/git-svn.txt |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
> index bec9acc..f4ba105 100644
> --- a/Documentation/git-svn.txt
> +++ b/Documentation/git-svn.txt
> @@ -188,6 +188,12 @@ All arguments are passed directly to `git blame'.
>  	commit.  All merging is assumed to have taken place
>  	independently of git-svn functions.
>  
> +'create-ignore'::
> +
> +	Recursively finds the svn:ignore property on directories and
> +	creates matching .gitignore files. The resulting files are staged to
> +	be committed, but are not committed.
> +
>  'show-ignore'::
>  	Recursively finds and lists the svn:ignore property on
>  	directories.  The output is suitable for appending to
> -- 
> 1.5.5.1.246.gafa4

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] git-svn: Make create-ignore use git add -f
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2008-05-05  4:04 UTC (permalink / raw)
  To: Gustaf Hendeby; +Cc: git, gitster

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-05  4:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH] git-svn: Make create-ignore use git add -f Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).