about summary refs log tree commit diff stats
path: root/80.pgm
Commit message (Expand)AuthorAgeFilesLines
* .Kartik K. Agaram2021-07-101-5/+53
* dithering greyscale using black/whiteKartik K. Agaram2021-07-101-0/+7
8111b8e9 ^
95b7c7b6 ^
8111b8e9 ^




26dce098 ^
8111b8e9 ^
95b7c7b6 ^
3eca1d01 ^
95b7c7b6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25









                                                          


                                                                
 
                              




                                               
                                                                           
 
                              
                         
                                
#!/bin/bash

# I work on a branch (named hut) which contains commits
# that should not be part of the standard distribution.
#
# This script picks all the good commits from hut and
# adds them to the master branch.
# Bad commits are marked with a "custom:" at the beginning
# of the commit message.

MASTER_BRANCH='master'
CUSTOM_BRANCH='hut'
ORIGINAL_BRANCH=`git branch 2>/dev/null|grep -e ^* | tr -d \*\ `

git checkout -m $MASTER_BRANCH

while read -r hash tag rest; do
	if [ $tag != 'custom:' ]; then
		git cherry-pick $hash || exit 1
	fi
done < <(git log --oneline --no-color $MASTER_BRANCH..$CUSTOM_BRANCH | tac)

git checkout -m $CUSTOM_BRANCH
git rebase $MASTER_BRANCH
git checkout -m $ORIGINAL_BRANCH