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
function fish_prompt | |
echo -n '[' | |
set_color $fish_color_cwd | |
echo -n (basename $PWD) | |
set_color normal | |
echo -n '] $ ' | |
end |
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
#! /usr/bin/env ruby | |
if ARGV.empty? | |
puts "Usage: git-change-history base [new-branch-name]" | |
puts " a list of SHA-1 for commits are given on STDIN. These are commits are added onto base" | |
puts "Example:" | |
puts " git log --pretty=\"%H\" master | git-change-history.rb base mynewbranch" | |
puts "" | |
puts "Use 'git log --pretty=\"%H %s\"' to test if you have the right SHA-1 commit hashes listed" | |
exit |
NewerOlder