aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/last-modified.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-12-14 17:04:36 +0900
committerJunio C Hamano <gitster@pobox.com>2025-12-14 17:04:37 +0900
commit21787077bf26ed0c68adcaea859a34c04e9e50c7 (patch)
tree1742543357106881ea3c250add1df41af8beb39e /builtin/last-modified.c
parent84ca5a2457757e8997ddcaa64e8c26372359965c (diff)
parent05491b90ce200e6411f9aaac0afe13af45d69824 (diff)
downloadgit-21787077bf26ed0c68adcaea859a34c04e9e50c7.tar.gz
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
Diffstat (limited to 'builtin/last-modified.c')
-rw-r--r--builtin/last-modified.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/last-modified.c b/builtin/last-modified.c
index cc5fd2e795..7345665a92 100644
--- a/builtin/last-modified.c
+++ b/builtin/last-modified.c
@@ -525,7 +525,8 @@ int cmd_last_modified(int argc, const char **argv, const char *prefix,
argc = parse_options(argc, argv, prefix, last_modified_options,
last_modified_usage,
- PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT);
+ PARSE_OPT_KEEP_ARGV0 | PARSE_OPT_KEEP_UNKNOWN_OPT |
+ PARSE_OPT_KEEP_DASHDASH);
repo_config(repo, git_default_config, NULL);