From: "Tommy M. McGuire" <mcguire@crsr.net>
To: "Tommy M. McGuire" <mcguire@crsr.net>
Cc: git@vger.kernel.org
Subject: [PATCH] Re: cg-init bug -- identified
Date: Sun, 5 Jun 2005 14:22:17 -0500 [thread overview]
Message-ID: <20050605192217.GC21345@immutable.crsr.net> (raw)
In-Reply-To: <20050605190938.GB21345@immutable.crsr.net>
[-- Attachment #1: Type: text/plain, Size: 125 bytes --]
Ok, so cg-mkpatch is nifty. (Note: slightly diferent patch to avoid
extra space when listing the files.)
--
Tommy McGuire
[-- Attachment #2: cg-add.patch --]
[-- Type: text/plain, Size: 985 bytes --]
Use -print0 with find and -0 with xargs to avoid problems with quotes,
etc., in filenames.
---
commit b106726cd681a9cb26343191afc74ccca5d4e351
tree a674424eddc66e19cf806113c70fd80e81879dd1
parent ac9f200795352b9330dcf3c18298ce3b738c7024
author Tommy M. McGuire <mcguire@crsr.net> Sun, 05 Jun 2005 14:17:37 -0500
committer Tommy M. McGuire <mcguire@crsr.net> Sun, 05 Jun 2005 14:17:37 -0500
cg-add | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cg-add b/cg-add
--- a/cg-add
+++ b/cg-add
@@ -20,9 +20,9 @@ USAGE="cg-add FILE..."
[ "$1" ] || usage
TMPFILE=$(mktemp -t gitadd.XXXXXX)
-find "$@" -type f > $TMPFILE || die "not all files exist, nothing added"
+find "$@" -type f -print0 > $TMPFILE || die "not all files exist, nothing added"
-cat $TMPFILE | awk '{print "Adding file " $0}'
-cat $TMPFILE | xargs git-update-cache --add --
+cat $TMPFILE | xargs -0l1 echo "Adding file"
+cat $TMPFILE | xargs -0 git-update-cache --add --
rm $TMPFILE
next prev parent reply other threads:[~2005-06-05 19:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-05 15:30 cg-init bug Zack Brown
2005-06-05 16:10 ` Radoslaw Szkodzinski
2005-06-05 16:27 ` Zack Brown
2005-06-05 17:59 ` Radoslaw Szkodzinski
2005-06-05 17:28 ` Petr Baudis
2005-06-05 17:56 ` Zack Brown
2005-06-05 18:10 ` Petr Baudis
2005-06-05 18:29 ` cg-init bug -- identified Zack Brown
2005-06-05 18:43 ` Tommy M. McGuire
2005-06-05 19:09 ` Tommy M. McGuire
2005-06-05 19:22 ` Tommy M. McGuire [this message]
2005-06-05 19:15 ` [PATCH] Make cg-add use xargs -0 Dan Holmsand
2005-06-05 20:19 ` cg-init bug -- identified Petr Baudis
2005-06-05 23:52 ` cg-init bug -- identified and fixed - thanks! Zack Brown
2005-06-05 21:11 ` cg-init bug -- identified Junio C Hamano
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=20050605192217.GC21345@immutable.crsr.net \
--to=mcguire@crsr.net \
--cc=git@vger.kernel.org \
/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.