Re: cygwin, 44k files: how to commit only index?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: <git@...>
Date: Thursday, December 7, 2006 - 4:29 pm

Junio C Hamano <junkio@cox.net> wrote:

Hmm.  OK, maybe I should have answered "No"" to your first question.
I keep looking at the assume unchanaged feature of update-index,
but refuse to use it because I'm a lazy guy who will forget to tell
the index a file has been modified.  Consequently I'm going to miss
a change during a commit.

What may help (and without using assume unchanged) is:

 * skip the `update-index --refresh` part of git-status/git-commit
 * skip the status template in COMMIT_MSG when using the editor

As Git will still at least make sure a `commit -a` includes
everything that is dirty.

Files whose modification dates may have been messed with (but
whose content are unchanged) will just go through expensive SHA1
computation to arrive at the same value, which is fine.

Users skipping the first part are doing so under the assumption that
their modification dates are usually always correct, and that then
they aren't the SHA1 computation of a handful of files is cheap
compared to stat'ing the entire set of files.

Users skipping the second part are doing so under the assumption
that knowing the names of the files they are committing doesn't
really improve their odds of writing a good commit message.

-- 
Shawn.
-
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:
cygwin, 44k files: how to commit only index?, Alex Riesen, (Thu Dec 7, 10:27 am)
Re: cygwin, 44k files: how to commit only index?, Junio C Hamano, (Thu Dec 7, 3:16 pm)
Re: cygwin, 44k files: how to commit only index?, Alex Riesen, (Thu Dec 7, 6:15 pm)
Re: cygwin, 44k files: how to commit only index?, Alex Riesen, (Fri Dec 8, 10:16 am)
Re: cygwin, 44k files: how to commit only index?, Junio C Hamano, (Thu Dec 7, 6:29 pm)
Re: cygwin, 44k files: how to commit only index?, Alex Riesen, (Fri Dec 8, 1:27 am)
Re: cygwin, 44k files: how to commit only index?, Shawn Pearce, (Thu Dec 7, 3:26 pm)
Re: cygwin, 44k files: how to commit only index?, Junio C Hamano, (Thu Dec 7, 3:57 pm)
Re: cygwin, 44k files: how to commit only index?, Shawn Pearce, (Thu Dec 7, 4:29 pm)
Re: cygwin, 44k files: how to commit only index?, Junio C Hamano, (Thu Dec 7, 5:53 pm)
Re: cygwin, 44k files: how to commit only index?, Shawn Pearce, (Thu Dec 7, 3:35 pm)
Re: cygwin, 44k files: how to commit only index?, Christian MICHON, (Thu Dec 7, 5:26 pm)
Re: cygwin, 44k files: how to commit only index?, Torgil Svensson, (Sat Dec 9, 4:27 am)