Re: git-commit: select which files to commit while editing the commit message

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, December 8, 2006 - 8:37 pm

Jakub Narebski <jnareb@gmail.com> writes:


I don't think I understand what an --exclude=<pattern> option would
do, but I'm pretty sure it doesn't help the use case I'm thinking of:

   Editing away, you've made changes in 8 files.

   Reviewing diff, you want to commit 6 of those and continue working
   on the other two.

   It seems that there could be a less manual way than 
   git update-index f1 f2 ... f6


Hmm, maybe I could do:

   git diff --name-only > changed
   ## edit changed
   cat changed|xargs git update-index

I suppose this could be wrapped in a simple way to bring up an editor.

+ seth
-
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:
Re: git-commit: select which files to commit while editing t..., Seth Falcon, (Fri Dec 8, 8:37 pm)
Re: git-commit: select which files to commit while editing t..., Josef Weidendorfer, (Sat Dec 9, 8:46 pm)
[PATCH] git-add --interactive (wip), Junio C Hamano, (Mon Dec 11, 5:23 am)
Re: [PATCH] git-add --interactive (wip), Josef Weidendorfer, (Mon Dec 11, 6:47 am)
Re: [PATCH] git-add --interactive (wip), Junio C Hamano, (Tue Dec 12, 5:51 pm)
Re: [PATCH] git-add --interactive (wip), Josef Weidendorfer, (Tue Dec 12, 11:15 pm)
Re: [PATCH] git-add --interactive (wip), Johannes Schindelin, (Tue Dec 12, 6:15 pm)
Re: [PATCH] git-add --interactive (wip), Andreas Ericsson, (Wed Dec 13, 5:20 am)