author | Junio C Hamano <junkio@cox.net> | |
Mon, 6 Feb 2006 00:08:01 +0000 (16:08 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 7 Feb 2006 07:20:32 +0000 (23:20 -0800) | ||
commit | 5a798fb57f788692467b1a11416dd5ebff0d31ae | |
tree | 500bc21b8bccfeba32742a6a7ce735e3e38c2a16 | tree | snapshot |
parent | 130fcca63fe8e7e087e7419907e018cbbaf434a3 | commit | diff |
git-commit: finishing touches.
Introduce --only flag to allow the new "partial commit"
semantics when paths are specified. The default is still the
traditional --include semantics. Once peoples' fingers and
scripts that want the traditional behaviour are updated to
explicitly say --include, we could change it to either default
to --only, or refuse to operate without either --only/--include
when paths are specified.
This also fixes a couple of bugs in the previous round. Namely:
- forgot to save/restore index in some cases.
- forgot to use the temporary index to show status when '--only
paths...' semantics was used.
- --author did not take precedence when reusing an existing
commit.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Introduce --only flag to allow the new "partial commit"
semantics when paths are specified. The default is still the
traditional --include semantics. Once peoples' fingers and
scripts that want the traditional behaviour are updated to
explicitly say --include, we could change it to either default
to --only, or refuse to operate without either --only/--include
when paths are specified.
This also fixes a couple of bugs in the previous round. Namely:
- forgot to save/restore index in some cases.
- forgot to use the temporary index to show status when '--only
paths...' semantics was used.
- --author did not take precedence when reusing an existing
commit.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | diff | blob | history |