-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: git-push: Update documentation to describe the no-refspec behavior. format-patch: pretty-print timestamp correctly. git-add: Add support for --, documentation, and test.
- Loading branch information
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,10 @@ while : ; do | |
-v) | ||
verbose=--verbose | ||
;; | ||
--) | ||
shift | ||
break | ||
;; | ||
-*) | ||
usage | ||
;; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2006 Carl D. Worth | ||
# | ||
|
||
test_description='Test of git-add, including the -- option.' | ||
|
||
. ./test-lib.sh | ||
|
||
test_expect_success \ | ||
'Test of git-add' \ | ||
'touch foo && git-add foo' | ||
|
||
test_expect_success \ | ||
'Post-check that foo is in the index' \ | ||
'git-ls-files foo | grep foo' | ||
|
||
test_expect_success \ | ||
'Test that "git-add -- -q" works' \ | ||
'touch -- -q && git-add -- -q' | ||
|
||
test_done |