changing suckless merge utils for having a base branch to ensure the master can be pushed with all features to ensure buildability without this utils

master
TiynGER 5 years ago
parent c0863d8c29
commit 05eab9e0b6

@ -1,2 +1,2 @@
#!/bin/zsh #!/bin/zsh
make clean && rm -f config.h && reset --hard origin/master make clean && rm -f config.h && git reset --hard origin/base

@ -1,6 +1,6 @@
#!/usr/bin/zsh #!/usr/bin/zsh
git checkout master && git checkout master &&
dotfiles="/home/drew/.config/dotfiles/suckless" dotfiles="/home/tiynger/.config/dotfiles/suckless"
project=$(basename $(pwd)) project=$(basename $(pwd))
diffdir="${dotfiles}/${project}_diffs/" diffdir="${dotfiles}/${project}_diffs/"
olddiffdir="${dotfiles}/${project}_diffs/old/" olddiffdir="${dotfiles}/${project}_diffs/old/"
@ -8,10 +8,10 @@ rm -rf "$olddiffdir" &&
mkdir -p "$olddiffdir" && mkdir -p "$olddiffdir" &&
mkdir -p "$diffdir" && mkdir -p "$diffdir" &&
mv "$diffdir"*.diff "$olddiffdir" || true && mv "$diffdir"*.diff "$olddiffdir" || true &&
make clean && rm -f config.h && git reset --hard origin/master && make clean && rm -f config.h && git reset --hard origin/base &&
for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do for branch in $(git for-each-ref --format='%(refname)' refs/heads/ | cut -d'/' -f3); do
if [ "$branch" != "master" ];then if [ "$branch" != "master" ];then
git diff master..$branch > "${diffdir}${project}_${branch}.diff" git diff base..$branch > "${diffdir}${project}_${branch}.diff"
fi fi
done done

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

Loading…
Cancel
Save