Created
March 13, 2026 12:40
-
-
Save rurban/d3976edb92ea7bc88550566dc1df877e to your computer and use it in GitHub Desktop.
git-lines - print lines since date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # prints commit lines since date | |
| date="$@" | |
| git log --reverse --since="$date" --pretty=oneline |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useful to creates a large patch series, we need
wc -lforgit format-patchgit status <hash>=> Date: Mon Feb 9 11:54:34 2026 +0100
git-lines Mon Feb 9 11:54:34 2026 +0100 | wc -l=> 54
git format-patch -54copy 00*.patch over to other project
git am 00*.patch