{"thread":{"id":"14999","subject":"[TopGit-PATCH] Force adding the .topmsg and .topdep files.","startedAt":"2008-08-14T05:15:45Z","lastAt":"2008-08-14T05:15:45Z","messageCount":1,"participants":["David Brown"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"87153","messageId":"1218690945-10322-1-git-send-email-git@davidb.org","threadId":"14999","inReplyTo":null,"subject":"[TopGit-PATCH] Force adding the .topmsg and .topdep files.","fromName":"David Brown","fromEmail":"git@davidb.org","sentAt":"2008-08-14T05:15:45Z","receivedAt":"2008-08-14T05:15:45Z","isPatch":true,"sender":{"key":"git@davidb.org","avatar":"https://gravatar.com/avatar/94c86a2938470a74c2eac5e2b69afc0871f79a660295c02219597aba8cb101c1?d=mp&s=160"},"body":"If the .gitignore in effect is ignoring the .topmsg and .topdeps\nfiles, tg create will fail trying to add these files.  Add the\n'-f option to these add commands to force the files to be added\nanyway.\n\nSigned-off-by: David Brown <git@davidb.org>\n---\n tg-create.sh |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/tg-create.sh b/tg-create.sh\nindex 939af33..3f33fa8 100644\n--- a/tg-create.sh\n+++ b/tg-create.sh\n@@ -100,7 +100,7 @@ git update-ref \"refs/top-bases/$name\" \"HEAD\" \"\"\n git checkout -b \"$name\"\n \n echo \"$deps\" | sed 's/ /\\n/g' >\"$root_dir/.topdeps\"\n-git add \"$root_dir/.topdeps\"\n+git add -f \"$root_dir/.topdeps\"\n \n author=\"$(git var GIT_AUTHOR_IDENT)\"\n author_addr=\"${author%> *}>\"\n@@ -118,7 +118,7 @@ author_addr=\"${author%> *}>\"\n Signed-off-by: $author_addr\n EOT\n } >\"$root_dir/.topmsg\"\n-git add \"$root_dir/.topmsg\"\n+git add -f \"$root_dir/.topmsg\"\n \n \n \n-- \n1.5.6.4\n"}]}