git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[cogito] cg-merge does not remove files removed upstream on fast-forward

From
BBlaisorblade <blaisorblade@yahoo.it>
Date
Nov 9, 2005, 00:08 UTC
Message-ID
<200511090108.51776.blaisorblade@yahoo.it>

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: Petr Baudis
Message 1 of 2 in “[cogito] cg-merge does not remove files removed upstream on fast-forward”
  1. BlaisorbladeNov 9, 2005
  2. Petr BaudisNov 9, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.