pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/AL-Rami/git-Al-Rami-ht/commit/21787077bf26ed0c68adcaea859a34c04e9e50c7

in="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> Merge branch 'js/last-modified-with-sparse-checkouts' · AL-Rami/git-Al-Rami-ht@2178707 · GitHub
Skip to content

Commit 2178707

Browse files
committed
Merge branch 'js/last-modified-with-sparse-checkouts'
"git last-modified" used to mishandle "--" to mark the beginning of pathspec, which has been corrected. * js/last-modified-with-sparse-checkouts: last-modified: support sparse checkouts
2 parents 84ca5a2 + 05491b9 commit 2178707

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

builtin/last-modified.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ int cmd_last_modified(int argc, const char **argv, const char *prefix,
525525

526526
argc = parse_options(argc, argv, prefix, last_modified_options,
527527
last_modified_usage,
528-
PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT);
528+
PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT |
529+
PARSE_OPT_KEEP_DASHDASH);
529530

530531
repo_config(repo, git_default_config, NULL);
531532

t/t8020-last-modified.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ test_expect_success 'last-modified subdir' '
7878
EOF
7979
'
8080

81+
test_expect_success 'last-modified in sparse checkout' '
82+
test_when_finished "git sparse-checkout disable" &&
83+
git sparse-checkout set b &&
84+
check_last_modified -- a <<-\EOF
85+
3 a
86+
EOF
87+
'
88+
8189
test_expect_success 'last-modified subdir recursive' '
8290
check_last_modified -r a <<-\EOF
8391
3 a/b/file

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy