summaryrefslogtreecommitdiff
path: root/t/t7508-status.sh
diff options
context:
space:
mode:
authorPaul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>2018-04-06 22:19:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-09 02:33:19 (GMT)
commitdecf711fc13858087c87808e539d75f06bd9f7b7 (patch)
tree31263ba8cb7a473cc660e084260ee504cccd92a8 /t/t7508-status.sh
parentd32eb83c1db7d0a8bb54fe743c6d1dd674d372c5 (diff)
downloadgit-decf711fc13858087c87808e539d75f06bd9f7b7.zip
git-decf711fc13858087c87808e539d75f06bd9f7b7.tar.gz
git-decf711fc13858087c87808e539d75f06bd9f7b7.tar.bz2
t/helper: 'test-chmtime (--get|-g)' to print only the mtime
Compared to 'test-chmtime -v +0 file' which prints the mtime and and the file name, 'test-chmtime --get file' displays only the mtime. If it is used in combination with (+|=|=+|=-|-)seconds, it changes and prints the new value. test-chmtime -v +0 file | sed 's/[^0-9].*$//' is now equivalent to: test-chmtime --get file Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7508-status.sh')
-rwxr-xr-xt/t7508-status.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 50052e2..2e19d59 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -1674,10 +1674,10 @@ test_expect_success '"Initial commit" should not be noted in commit template' '
test_expect_success '--no-optional-locks prevents index update' '
test-chmtime =1234567890 .git/index &&
git --no-optional-locks status &&
- test-chmtime -v +0 .git/index >out &&
+ test-chmtime --get .git/index >out &&
grep ^1234567890 out &&
git status &&
- test-chmtime -v +0 .git/index >out &&
+ test-chmtime --get .git/index >out &&
! grep ^1234567890 out
'