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 eeb966e1b6
commit 46fce77dd2

@ -1,2 +1,2 @@
#!/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
git checkout master &&
dotfiles="/home/drew/.config/dotfiles/suckless"
dotfiles="/home/tiynger/.config/dotfiles/suckless"
project=$(basename $(pwd))
diffdir="${dotfiles}/${project}_diffs/"
olddiffdir="${dotfiles}/${project}_diffs/old/"
@ -8,10 +8,10 @@ rm -rf "$olddiffdir" &&
mkdir -p "$olddiffdir" &&
mkdir -p "$diffdir" &&
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
if [ "$branch" != "master" ];then
git diff master..$branch > "${diffdir}${project}_${branch}.diff"
git diff base..$branch > "${diffdir}${project}_${branch}.diff"
fi
done

@ -1,8 +1,8 @@
#!/bin/zsh
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
if [ "$branch" != "master" ];then
if [[ ("$branch" != "master") && ("$branch" != "base") ]];then
echo $branch
git merge $branch -m $branch
fi

Loading…
Cancel
Save