Browse Source
* 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.maint
Junio C Hamano
19 years ago
5 changed files with 39 additions and 2 deletions
@ -0,0 +1,22 @@
@@ -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 |
Loading…
Reference in new issue