From: Toon Claes Date: Fri, 30 Jan 2026 14:26:37 GMT Subject: [PATCH v6 3/4] last-modified: remove double error message Message-ID: <20260130-toon-last-modified-tree-v6-3-db827e5df985@iotcl.com> In-Reply-To: <20260130-toon-last-modified-tree-v6-0-db827e5df985@iotcl.com> 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 --- builtin/last-modified.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.53.0.rc1.267.g6e3a78c723