diff options
| author | Toon Claes <toon@iotcl.com> | 2026-01-30 15:26:37 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-30 08:57:01 -0800 |
| commit | b768485c4b7ad0a80d0fd24ec941308b57ccb6ed (patch) | |
| tree | bec9761aa8565a07c22db1d3d5dda0e923ee0af3 | |
| parent | e2505ec170bc0861c3b902bc9763416c5f222455 (diff) | |
| download | git-b768485c4b7ad0a80d0fd24ec941308b57ccb6ed.tar.xz | |
last-modified: remove double error message
When the user passes two revisions, they get the following output:
$ git last-modified HEAD HEAD~
error: last-modified can only operate on one revision at a time
error: unable to setup last-modified
The error message about "unable to setup" is not very informative,
remove it.
Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | builtin/last-modified.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/last-modified.c b/builtin/last-modified.c index 31dea975a0..e02ec8428b 100644 --- a/builtin/last-modified.c +++ b/builtin/last-modified.c @@ -495,7 +495,7 @@ static int last_modified_init(struct last_modified *lm, struct repository *r, lm->rev.bloom_filter_settings = get_bloom_filter_settings(lm->rev.repo); if (populate_paths_from_revs(lm) < 0) - return error(_("unable to setup last-modified")); + return -1; CALLOC_ARRAY(lm->all_paths, hashmap_get_size(&lm->paths)); lm->all_paths_nr = 0; |
