t/helper: 'test-chmtime (--get|-g)' to print only the mtime
commitdecf711fc13858087c87808e539d75f06bd9f7b7
authorPaul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Fri, 6 Apr 2018 22:19:47 +0000 (7 01:19 +0300)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 02:33:19 +0000 (9 11:33 +0900)
tree31263ba8cb7a473cc660e084260ee504cccd92a8
parentd32eb83c1db7d0a8bb54fe743c6d1dd674d372c5
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>
t/helper/test-chmtime.c
t/t2022-checkout-paths.sh
t/t3404-rebase-interactive.sh
t/t3510-cherry-pick-sequence.sh
t/t4200-rerere.sh
t/t5000-tar-tree.sh
t/t6022-merge-rename.sh
t/t6501-freshen-objects.sh
t/t7508-status.sh
t/t7701-repack-unpack-unreachable.sh