File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ prefix =/usr/local
2
+
3
+ # files that need mode 755
4
+ EXEC_FILES =git-blame-someone-else
5
+
6
+ all :
7
+ @echo " usage: make install"
8
+ @echo " make uninstall"
9
+
10
+ install :
11
+ install -m 0755 $(EXEC_FILES ) $(prefix ) /bin
12
+
13
+ uninstall :
14
+ test -d $(prefix ) /bin && \
15
+ cd $(prefix ) /bin && \
16
+ rm -f $(EXEC_FILES )
Original file line number Diff line number Diff line change
1
+ # git-blame-someone-else
2
+
3
+ ## Usage
4
+
5
+ ``` bash
6
+ $ git blame-someone-else < author> < commit>
7
+ ```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ AUTHOR=$1
4
+ COMMIT=$( git rev-parse --short $2 )
5
+
6
+ {
7
+ GIT_SEQUENCE_EDITOR=" sed -i -e 's/^pick $COMMIT /edit $COMMIT /'" git rebase -i $COMMIT ~1^^
8
+ git commit --amend --no-edit --author=" $AUTHOR "
9
+ git rebase --continue
10
+ } & > /dev/null
11
+
12
+ echo " $AUTHOR is now the author of $COMMIT . You're officially an asshole." ;
You can’t perform that action at this time.
0 commit comments