From: Blaisorblade <blaisorblade@yahoo.it>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org
Subject: [cogito] cg-merge does not remove files removed upstream on fast-forward
Date: Wed, 9 Nov 2005 01:08:33 +0100 [thread overview]
Message-ID: <200511090108.51776.blaisorblade@yahoo.it> (raw)
Once again, (not the first time) when doing "cg-merge origin" (or cg-update I
guess, too) I find a tons of files which were removed upstream and cogito
didn't remove. It was a fast-forward merge on Linus' tree:
$ cg merge origin
Fast-forwarding d83c671fb7023f69a9582e622d01525054f23b66 ->
a52e8381c430896d3bd6065a34fda99cb5c74c82
on top of d83c671fb7023f69a9582e622d01525054f23b66...
cg version
cogito-0.15.1 (b07f98ba4cabdd9d208da28be932e547675e5cdf)
(The base id is ab91bd11258f8987fc8d537871c733e04f8c8248, I've added a trivial
patch to add more options to cg-diff and cg-mkpatch, i.e. unrelated).
Below there is the excerpt of code in tree_timewarp:
# Kill gone files
git-diff-tree -z -r $base $branch | xargs -0 bash -c '
while [ "$1" ]; do
header="$1"; shift
file="$1"; shift
# match ":100755 000000 14d43b1abf... 000000000... D"
if echo "$header" | egrep "^:([^ ][^ ]* ){4}D"
>/dev/null; then
rm -- "$file"
fi
done
' padding
I must say I also saw git-ls-files --deleted running with top (probably from
cg-patch), but it didn't seem to help.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
next reply other threads:[~2005-11-09 0:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 0:08 Blaisorblade [this message]
2005-11-09 22:54 ` [cogito] cg-merge does not remove files removed upstream on fast-forward Petr Baudis
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=200511090108.51776.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--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