diff options
author | Teddy Wing | 2020-10-03 17:51:33 +0200 |
---|---|---|
committer | Teddy Wing | 2020-10-03 17:51:33 +0200 |
commit | 90969d5e9defcd593c7acc416247cd7a6b04e532 (patch) | |
tree | 8292856d4279cae8860dd928317639b25c1fb10a | |
parent | 55df32511a9050c0966e40d330b164c14abc1003 (diff) | |
download | git-todo-90969d5e9defcd593c7acc416247cd7a6b04e532.tar.bz2 |
Remove old files
These files were for ideas and explorations of solutions. We now have a
working implementation independent of them.
-rwxr-xr-x | git-oldest-ancestor | 16 | ||||
-rwxr-xr-x | git-todos | 20 | ||||
-rw-r--r-- | t/Ideas.txt | 2 |
3 files changed, 0 insertions, 38 deletions
diff --git a/git-oldest-ancestor b/git-oldest-ancestor deleted file mode 100755 index 57db44d..0000000 --- a/git-oldest-ancestor +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# git-oldest-ancestor -# -# Finds the branch point of the current HEAD. -# -# From lindes (https://stackoverflow.com/users/313756/lindes) on Stack Overflow -# https://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git/4991675#4991675 -# https://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git/4991675#comment42897586_4991675 - -diff \ - --old-line-format='' \ - --new-line-format='' \ - <(git rev-list --first-parent "${1:-master}") \ - <(git rev-list --first-parent "${2:-HEAD}") | - head -1 diff --git a/git-todos b/git-todos deleted file mode 100755 index 8ab96eb..0000000 --- a/git-todos +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -# Show TODOs since base branch - -git diff --diff-filter=a -S'TODO' "$(git oldest-ancestor)"... | - egrep --after-context 1 '^\+.*\bTODO\b' | - sed 's/^+[[:space:]]*//' - - -# Want: -# - filename -# - line number - -# Use git blame? - -# fgrep -A 1 -n TODO $(git diff --name-only $(git oldest-ancestor)... ) -# ^ not quite the same thing, as it will catch old TODOs in updated files - -# https://stackoverflow.com/questions/23298812/python-unified-diff-with-line-numbers-from-both-files -# diff --unchanged-line-format=' %.2dn %L' --old-line-format="-%.2dn %L" --new-line-format="+%.2dn %L" <(git show @~:app/module/background/nativeMessageManager.js) app/module/background/nativeMessageManager.js diff --git a/t/Ideas.txt b/t/Ideas.txt deleted file mode 100644 index af4d431..0000000 --- a/t/Ideas.txt +++ /dev/null @@ -1,2 +0,0 @@ -- TODOs from file prior to branch point -- Doesn't include removed TODO lines |