{"thread":{"id":"13377","subject":"[PATCH] Documentation: Add create-ignore to git svn manual","startedAt":"2008-05-04T22:33:09Z","lastAt":"2008-05-05T04:04:33Z","messageCount":4,"participants":["Gustaf Hendeby","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"76053","messageId":"1209940390-22622-1-git-send-email-hendeby@isy.liu.se","threadId":"13377","inReplyTo":null,"subject":"[PATCH] git-svn: Make create-ignore use git add -f","fromName":"Gustaf Hendeby","fromEmail":"hendeby@isy.liu.se","sentAt":"2008-05-04T22:33:09Z","receivedAt":"2008-05-04T22:33:09Z","isPatch":true,"sender":{"key":"hendeby@isy.liu.se","avatar":"https://avatars.githubusercontent.com/u/730316?v=4"},"body":"When having a svn:ignore that ignores the .gitignore file the -f\noption to git add must be used to avoid git complaining about adding\nan ignored file and hence stop the process of creating .gitignores.\n\nSigned-off-by: Gustaf Hendeby <hendeby@isy.liu.se>\n---\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 81afb5c..d6d7b1a 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -612,7 +612,7 @@ sub cmd_create_ignore {\n \t\tprint GITIGNORE \"$s\\n\";\n \t\tclose(GITIGNORE)\n \t\t  or fatal(\"Failed to close `$ignore': $!\");\n-\t\tcommand_noisy('add', $ignore);\n+\t\tcommand_noisy('add', '-f', $ignore);\n \t});\n }\n \n-- \n1.5.5.1.246.gafa4\n"},{"id":"76052","messageId":"1209940390-22622-2-git-send-email-hendeby@isy.liu.se","threadId":"13377","inReplyTo":"1209940390-22622-1-git-send-email-hendeby@isy.liu.se","subject":"[PATCH] Documentation: Add create-ignore to git svn manual","fromName":"Gustaf Hendeby","fromEmail":"hendeby@isy.liu.se","sentAt":"2008-05-04T22:33:10Z","receivedAt":"2008-05-04T22:33:10Z","isPatch":true,"sender":{"key":"hendeby@isy.liu.se","avatar":"https://avatars.githubusercontent.com/u/730316?v=4"},"body":"\nSigned-off-by: Gustaf Hendeby <hendeby@isy.liu.se>\n---\n Documentation/git-svn.txt |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex bec9acc..f4ba105 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -188,6 +188,12 @@ All arguments are passed directly to `git blame'.\n \tcommit.  All merging is assumed to have taken place\n \tindependently of git-svn functions.\n \n+'create-ignore'::\n+\n+\tRecursively finds the svn:ignore property on directories and\n+\tcreates matching .gitignore files. The resulting files are staged to\n+\tbe committed, but are not committed.\n+\n 'show-ignore'::\n \tRecursively finds and lists the svn:ignore property on\n \tdirectories.  The output is suitable for appending to\n-- \n1.5.5.1.246.gafa4\n"},{"id":"76066","messageId":"20080505040419.GA13122@untitled","threadId":"13377","inReplyTo":"1209940390-22622-2-git-send-email-hendeby@isy.liu.se","subject":"Re: [PATCH] Documentation: Add create-ignore to git svn manual","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-05-05T04:04:19Z","receivedAt":"2008-05-05T04:04:19Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Gustaf Hendeby <hendeby@isy.liu.se> wrote:\n> \n> Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>\n\nAcked-by: Eric Wong <normalperson@yhbt.net>\n\n> ---\n>  Documentation/git-svn.txt |    6 ++++++\n>  1 files changed, 6 insertions(+), 0 deletions(-)\n> \n> diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\n> index bec9acc..f4ba105 100644\n> --- a/Documentation/git-svn.txt\n> +++ b/Documentation/git-svn.txt\n> @@ -188,6 +188,12 @@ All arguments are passed directly to `git blame'.\n>  \tcommit.  All merging is assumed to have taken place\n>  \tindependently of git-svn functions.\n>  \n> +'create-ignore'::\n> +\n> +\tRecursively finds the svn:ignore property on directories and\n> +\tcreates matching .gitignore files. The resulting files are staged to\n> +\tbe committed, but are not committed.\n> +\n>  'show-ignore'::\n>  \tRecursively finds and lists the svn:ignore property on\n>  \tdirectories.  The output is suitable for appending to\n> -- \n> 1.5.5.1.246.gafa4\n"},{"id":"76067","messageId":"20080505040433.GB13122@untitled","threadId":"13377","inReplyTo":"1209940390-22622-1-git-send-email-hendeby@isy.liu.se","subject":"Re: [PATCH] git-svn: Make create-ignore use git add -f","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2008-05-05T04:04:33Z","receivedAt":"2008-05-05T04:04:33Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Gustaf Hendeby <hendeby@isy.liu.se> wrote:\n> When having a svn:ignore that ignores the .gitignore file the -f\n> option to git add must be used to avoid git complaining about adding\n> an ignored file and hence stop the process of creating .gitignores.\n> \n> Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se>\n\nAcked-by: Eric Wong <normalperson@yhbt.net>\n> ---\n>  git-svn.perl |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n> \n> diff --git a/git-svn.perl b/git-svn.perl\n> index 81afb5c..d6d7b1a 100755\n> --- a/git-svn.perl\n> +++ b/git-svn.perl\n> @@ -612,7 +612,7 @@ sub cmd_create_ignore {\n>  \t\tprint GITIGNORE \"$s\\n\";\n>  \t\tclose(GITIGNORE)\n>  \t\t  or fatal(\"Failed to close `$ignore': $!\");\n> -\t\tcommand_noisy('add', $ignore);\n> +\t\tcommand_noisy('add', '-f', $ignore);\n>  \t});\n>  }\n>  \n> -- \n> 1.5.5.1.246.gafa4\n"}]}