Re: [PATCH 4/4] Implement git commit and status as a builtin commands.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kristian
Date: Thursday, November 8, 2007 - 9:01 am

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/4] Add testcase for ammending and fixing author i ..., Kristian Høgsberg, (Fri Nov 2, 8:33 am)
[PATCH 2/4] Remove unecessary hard-coding of EDITOR=':' VI ..., Kristian Høgsberg, (Fri Nov 2, 8:33 am)
[PATCH 3/4] Export launch_editor() and make it accept ':' ..., Kristian Høgsberg, (Fri Nov 2, 8:33 am)
[PATCH 4/4] Implement git commit and status as a builtin c ..., Kristian Høgsberg, (Fri Nov 2, 8:33 am)
Re: [PATCH 4/4] Implement git commit and status as a built ..., Johannes Schindelin, (Sat Nov 3, 6:56 am)
Re: [PATCH 4/4] Implement git commit and status as a built ..., Johannes Schindelin, (Mon Nov 5, 4:18 pm)
Re: [PATCH 4/4] Implement git commit and status as a built ..., Kristian , (Thu Nov 8, 9:01 am)