1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

adding suckless git utilities

This commit is contained in:
TiynGER
2020-03-28 17:42:27 +01:00
parent a2806de9db
commit db1c535fb9
3 changed files with 30 additions and 0 deletions

11
.local/bin/suckless/suckmerge Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/zsh
suckdiff &&
git reset --hard origin/master &&
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
if [ "$branch" != "master" ];then
echo $branch
git merge $branch -m $branch
fi
done
make && sudo make clean install