Skip to content

Commit 81516b8

Browse files
committed
Add script to show filename changes
1 parent 99bdfcd commit 81516b8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tools/git/scripts/filename_changes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Prints filename changes.
4+
#
5+
# <weekday> <month> <day> <time> <year> <first_name> <last_name>
6+
# R<%> <original_filename> <new_filename>
7+
8+
# * `git log --reverse`
9+
# - Show commit logs in reverse order.
10+
# * `--find-renames`
11+
# - Find file renames.
12+
# * `--name-status`
13+
# - Show only names.
14+
# * `--diff-filter R`
15+
# - Only select files which are renamed (R).
16+
# * `--format=format:""`
17+
# - Format the log.
18+
# * `--date=format:""`
19+
# - Format the date.
20+
git log \
21+
--reverse \
22+
--find-renames \
23+
--name-status \
24+
--diff-filter R \
25+
--format=format:"%ad %aN" \
26+
--date=format:"%a %b %d %T %Y"

0 commit comments

Comments
 (0)