git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brown <git@davidb.org>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org, David Brown <git@davidb.org>
Subject: [TopGit-PATCH] Force adding the .topmsg and .topdep files.
Date: Wed, 13 Aug 2008 22:15:45 -0700	[thread overview]
Message-ID: <1218690945-10322-1-git-send-email-git@davidb.org> (raw)

If the .gitignore in effect is ignoring the .topmsg and .topdeps
files, tg create will fail trying to add these files.  Add the
'-f option to these add commands to force the files to be added
anyway.

Signed-off-by: David Brown <git@davidb.org>
---
 tg-create.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tg-create.sh b/tg-create.sh
index 939af33..3f33fa8 100644
--- a/tg-create.sh
+++ b/tg-create.sh
@@ -100,7 +100,7 @@ git update-ref "refs/top-bases/$name" "HEAD" ""
 git checkout -b "$name"
 
 echo "$deps" | sed 's/ /\n/g' >"$root_dir/.topdeps"
-git add "$root_dir/.topdeps"
+git add -f "$root_dir/.topdeps"
 
 author="$(git var GIT_AUTHOR_IDENT)"
 author_addr="${author%> *}>"
@@ -118,7 +118,7 @@ author_addr="${author%> *}>"
 Signed-off-by: $author_addr
 EOT
 } >"$root_dir/.topmsg"
-git add "$root_dir/.topmsg"
+git add -f "$root_dir/.topmsg"
 
 
 
-- 
1.5.6.4

                 reply	other threads:[~2008-08-14  5:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1218690945-10322-1-git-send-email-git@davidb.org \
    --to=git@davidb.org \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    /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 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).