This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to loop on local and remote branches, to delete all those which are | |
# already merged in master. | |
# Assumes "origin" and "master" are your references: replace all occurrences | |
# of "origin" with the name of your personal remote. | |
# | |
# Careful with branches which should are meant as tags in the past! | |
# | |
# Inspired from http://devblog.springest.com/a-script-to-remove-old-git-branches | |
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/ | |
# | |
# Copyright (c) 2012 Sanne Grinovero | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/" | |
} | |
function git_project_id { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/ | |
# Copyright (c) 2012 Sanne Grinovero | |
if [[ $# -eq 0 ]]; then | |
rm -f *.patch && git format-patch -M80% -C80% master && gedit -w -s *.patch && rm *.patch | |
else | |
rm -f *.patch && git format-patch -M80% -C80% "$@" && gedit -w -s *.patch && rm *.patch | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = gedit | |
[merge] | |
tool = meld | |
[color] | |
ui = yes | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will look into the GIT commit log of the current directory, backwards since the branch | |
# from master, searching for references to JIRA issues of a set of known projects. | |
# It will then print URLs to all mentioned JIRA issues. | |
# Optionally (uncommnent one line) it could open all relevant issues in different tabs of a browser: this is useful | |
# in my workflow as I often want to comment and/or close the issues when merging work in upstream. | |
# | |
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/ | |
# | |
# Copyright (c) 2011 Sanne Grinovero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run ./build.sh | |
# it will clone your existing repo and run the maven tests off this clone | |
# the branch tests are run from is the current branch at the time of cloning | |
# | |
# Note that you can work on the next bug while this is going on | |
# | |
# ./build.sh | |
# runs maven clean install | |
# |
NewerOlder