]> git.ipfire.org Git - thirdparty/git.git/commit
last-modified: new subcommand to show when files were last modified
authorToon Claes <toon@iotcl.com>
Tue, 5 Aug 2025 09:33:56 +0000 (11:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Aug 2025 23:44:58 +0000 (16:44 -0700)
commit32f74582bc298621a05ab5733810ff0300b69715
treea0785f7ed100b6daec7d54242e22fd56e0923e87
parente813a0200a7121b97fec535f0d0b460b0a33356c
last-modified: new subcommand to show when files were last modified

Similar to git-blame(1), introduce a new subcommand
git-last-modified(1). This command shows the most recent modification to
paths in a tree. It does so by expanding the tree at a given commit,
taking note of the current state of each path, and then walking
backwards through history looking for commits where each path changed
into its final commit ID.

Based-on-patch-by: Jeff King <peff@peff.net>
Improved-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Documentation/git-last-modified.adoc [new file with mode: 0644]
Documentation/meson.build
Makefile
builtin.h
builtin/last-modified.c [new file with mode: 0644]
command-list.txt
git.c
meson.build
t/meson.build
t/t8020-last-modified.sh [new file with mode: 0755]