Re: git-rm isn't the inverse action of git-add

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthieu Moy
Date: Monday, July 2, 2007 - 1:54 pm

Yann Dirson <ydirson@altern.org> writes:


Defaulting to --cached would be an obvious way to avoid data-loss.
_At least_, mentionning --cached in the error message in case of
staged changes would be a considerable step forward.

At the moment, the non-expert user will have difficulties to unversion
the file without deleting it. I just see it as

$ git rm foo
error: 'foo' has changes staged in the index
(hint: to hang yourself, try -f)
$ _

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-rm isn't the inverse action of git-add, Christian Jaeger, (Mon Jul 2, 11:09 am)
Re: git-rm isn't the inverse action of git-add, Yann Dirson, (Mon Jul 2, 12:42 pm)
Re: git-rm isn't the inverse action of git-add, Christian Jaeger, (Mon Jul 2, 1:23 pm)
Re: git-rm isn't the inverse action of git-add, Yann Dirson, (Mon Jul 2, 1:40 pm)
Re: git-rm isn't the inverse action of git-add, Matthieu Moy, (Mon Jul 2, 1:54 pm)
Re: git-rm isn't the inverse action of git-add, Johannes Schindelin, (Mon Jul 2, 2:05 pm)
Re: git-rm isn't the inverse action of git-add, Christian Jaeger, (Mon Jul 2, 2:20 pm)
Re: git-rm isn't the inverse action of git-add, Jeff King, (Mon Jul 2, 9:12 pm)
Re: git-rm isn't the inverse action of git-add, Junio C Hamano, (Mon Jul 2, 9:47 pm)
Re: git-rm isn't the inverse action of git-add, Jeff King, (Mon Jul 2, 9:59 pm)
Re: git-rm isn't the inverse action of git-add, Junio C Hamano, (Mon Jul 2, 10:09 pm)
Re: git-rm isn't the inverse action of git-add, Jeff King, (Mon Jul 2, 10:12 pm)
Re: git-rm isn't the inverse action of git-add, Junio C Hamano, (Mon Jul 2, 11:26 pm)
Re: git-rm isn't the inverse action of git-add, Matthieu Moy, (Tue Jul 3, 3:37 am)
Re: git-rm isn't the inverse action of git-add, Johannes Schindelin, (Tue Jul 3, 5:09 am)
Re: git-rm isn't the inverse action of git-add, Matthieu Moy, (Tue Jul 3, 6:40 am)
Re: git-rm isn't the inverse action of git-add, Johannes Schindelin, (Tue Jul 3, 7:21 am)
Re: git-rm isn't the inverse action of git-add, Jan Hudec, (Wed Jul 4, 1:08 pm)
Re: git-rm isn't the inverse action of git-add, Matthieu Moy, (Thu Jul 5, 6:44 am)
Re: [RFC][PATCH] Re: git-rm isn't the inverse action of gi ..., Johannes Schindelin, (Sun Jul 8, 11:10 am)
Re: [RFC][PATCH] Re: git-rm isn't the inverse action of gi ..., Johannes Schindelin, (Sun Jul 8, 2:49 pm)