Re: [PATCH 6/6] Add git-rewrite-commits

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <skimo@...>, <git@...>
Date: Saturday, July 14, 2007 - 3:26 pm

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


"git update-index --remove Foo" does not remove the index entry
Foo if the file Foo still exists in the working tree (use "git
update-index --force-remove" for that).

But this leads to more fundamental issues.  It is not obvious
from the description what environment rewrite-commits runs in.
Does it run at the toplevel of the current working tree, or is
it run in a separate temporary directory like filter-branch
does?  What "index" and "HEAD" do operations done by filters
affect (I think it is safe to assume that readers familiar
enough with other parts of git would be able to guess that
filters should operate on the "HEAD" and index given by
rewrite-commits to its execution environment without mucking
with GIT_DIR nor GIT_INDEX_FILE)?  Are filters allowed to modify
files in the working tree, and if so what is the consequence of
doing so?


prevents the filter from failing?  But is that really what we
want?  Why are we ignoring the error, and if there is a valid
reason to ignore shouldn't we explain why?


I see only one operation in the example, and "or remove it from
there" confuses the reader.

I'll refrain from comments on the code right now, until I read
the series over.

-
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:
[PATCH 2/6] export get_short_sha1, , (Thu Jul 12, 3:05 pm)
Re: [PATCH 3/6] Define ishex(x) in git-compat-util.h, Johannes Schindelin, (Sat Jul 14, 6:18 am)
[PATCH 6/6] Add git-rewrite-commits, , (Thu Jul 12, 3:06 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Johannes Schindelin, (Sat Jul 14, 8:49 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Sun Jul 15, 10:44 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Johannes Schindelin, (Sun Jul 15, 8:38 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Mon Jul 16, 4:04 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Johannes Schindelin, (Wed Jul 18, 7:17 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Thu Jul 19, 8:40 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Mon Jul 16, 5:47 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Johannes Schindelin, (Wed Jul 18, 7:05 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Mon Jul 16, 6:24 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Johannes Schindelin, (Wed Jul 18, 7:02 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Wed Jul 18, 8:05 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Sat Jul 14, 4:15 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Junio C Hamano, (Sat Jul 14, 3:26 pm)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Sun Jul 15, 10:07 am)
Re: [PATCH 6/6] Add git-rewrite-commits, Sven Verdoolaege, (Fri Jul 13, 4:01 am)