iamnewton / dotfiles

UNIX-based system configuration for software development
https://github.com/iamnewton/dotfiles#readme
GNU General Public License v3.0
9 stars 3 forks source link

script to force creating a description for git stash #61

Open iamnewton opened 9 years ago

iamnewton commented 9 years ago
$ git stash save “Description of my changes”`
_git_stash() {
    local desc=$1

    if test ! -n "${desc}"; then
        echo -n "You forgot to give it a description"
        exit
    else
        git stash save "${desc}"
    fi
}