Created
October 15, 2025 07:07
-
-
Save ProExpertProg/01a5e34d45898bb04e451c206c5c4897 to your computer and use it in GitHub Desktop.
Git TODOs
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
| [alias] | |
| todos = "!sh -c ' \ | |
| [ $GIT_PREFIX ] && cd $GIT_PREFIX; \ | |
| git status --short --branch $*; \ | |
| git --no-pager diff -U0 main | \ | |
| grep \"^+.*TODO\" | \ | |
| sed \"s/^+//\" | \ | |
| git --no-pager grep -nFf - -- $(git --no-pager diff --name-only main) 2> /dev/null' -" | |
| pr = "!f() { repo=\"origin\"; if [ $# -eq 2 ]; then repo=$1; pr=$2; else pr=$1; fi; git fetch $repo pull/$pr/head:pr-$pr && git checkout pr-$pr; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment