On Sat, 2007-11-03 at 13:56 +0000, Johannes Schindelin wrote:
Hi, wanted to send this out earlier, but I punted it and a couple of
days went by...
Yup, that looks right.
Yes, I've moved the interactive case up to the beginning of
prepare_index() and made it return get_index_file() after running
interactive_add().
Do you mean "not specifying any options and paths..."? In that case we
add the files to the index and create a temporary index from HEAD and
add the files there too, which we then commit. So we have to write the
index in that case. If there are no files on the command line, we roll
back the lock and bail out just above the part you quoted.
Heh, yeah, I toned it down a bit :)
Yup, added.
Sure, not a big deal, though.
Yeah, we can move it later, though.
You mean you want to do it right after the argv[0] assignment? I'd like
to keep the block of assignments together so it's easy to see how the
array is set up. Don't tell me you worry about performance here... ;)
Heh, I just did what the shell script did. It uses git diff-tree for
this, and the above is just the relevant bits from builtin-diff-tree.c.
cheers,
Kristian
-
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