From: Jonas Fonseca <fonseca@diku.dk>
To: Petr Baudis <pasky@suse.cz>
Cc: git@vger.kernel.org
Subject: Re: [Cogito] Various bugs
Date: Tue, 7 Feb 2006 14:55:37 +0100 [thread overview]
Message-ID: <20060207135537.GB9462@diku.dk> (raw)
In-Reply-To: <20060207003643.GJ31278@pasky.or.cz>
Petr Baudis <pasky@suse.cz> wrote Tue, Feb 07, 2006:
> Dear diary, on Tue, Jan 31, 2006 at 05:13:18AM CET, I got a letter
> where Jonas Fonseca <fonseca@diku.dk> said that...
> > A few Cogito bugs I found yesterday.
> >
> > - cg-fetch between local repos fails when the cloned branch URL does
> > not point to a .git directory and a needed object from the repository
> > being cloned is packed. git-local-fetch expects a .git directory.
>
> Can't reproduce and I don't buy it. The very first line of local fetch
> handler is
>
> [ -d "$uri/.git" ] && uri="$uri/.git"
I cannot reproduce it either and my strace file is long gone thanks to
cg-clean. Come to think of it it might have been caused by a pack file
not following the more strict name rules which recently was introduced
in GIT.
> > - cg-status reports a deleted file both as deleted and as unknown:
> >
> > fonseca@antimatter:~/src/elinks/0.12 > git --version
> > git version 1.1.6.g1506
> > fonseca@antimatter:~/src/elinks/0.12 > cg --version
> > cogito-0.17pre.GIT (d3aa9a2b3375e36c774ea477492db76baa1db03e)
> > fonseca@antimatter:~/src/elinks/0.12 > cg rm AUTHORS
> > Removing file AUTHORS
> > fonseca@antimatter:~/src/elinks/0.12 > cg status | grep AUTHORS
> > ? AUTHORS
> > D AUTHORS
>
> This is fine, I'd say. The file was not deleted from the tree, either do
> that manually by rm or say cg-rm -f.
Yes, I guess you are right, this is a special case. But I think it needs
to be noted that this is 'normal'. Something like this vague patch
signed-off-by me.
diff --git a/cg-status b/cg-status
index 6abc52f..d38c61f 100755
--- a/cg-status
+++ b/cg-status
@@ -21,12 +21,12 @@
# D::
# '<file>' has been deleted.
# !::
-# '<file>' is gone from your working copy but not deleted by cg-rm.
+# '<file>' is gone from your working copy but not deleted by `cg-rm`.
# M::
# '<file>' has been touched or modified.
# m::
# '<file>' has been touched or modified, but will not be automatically
-# committed the next time you call cg-commit. This is used during a
+# committed the next time you call `cg-commit`. This is used during a
# merge to mark files which contained local changes before the merge.
#
# OPTIONS
@@ -55,6 +55,14 @@
# Path to the directory to use as the base for the working tree
# file list (instead of the current directory).
#
+# NOTES
+# -----
+# If a file has been removed with `cg-rm` without using the `-f` option
+# to remove it physically from the tree it will be reported as both being
+# deleted and unknown. The reason for this is that the file is internally
+# marked as deleted and thus also untracked. After next commit it will only
+# be reported as being untracked.
+#
# FILES
# -----
# $GIT_DIR/info/exclude::
--
Jonas Fonseca
prev parent reply other threads:[~2006-02-07 13:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 4:13 [Cogito] Various bugs Jonas Fonseca
2006-02-07 0:36 ` Petr Baudis
2006-02-07 2:03 ` Junio C Hamano
2006-02-07 2:10 ` Petr Baudis
2006-02-07 3:03 ` Junio C Hamano
2006-02-07 15:53 ` Linus Torvalds
2006-02-07 16:49 ` Petr Baudis
2006-02-07 16:56 ` Linus Torvalds
2006-02-07 20:49 ` Junio C Hamano
2006-02-07 13:55 ` Jonas Fonseca [this message]
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=20060207135537.GB9462@diku.dk \
--to=fonseca@diku.dk \
--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 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.