Skip to content

Instantly share code, notes, and snippets.

@msaharov
msaharov / rev.sh
Last active August 29, 2015 14:16
rev.txt creator
#!/usr/bin/env bash
# --------------------------------------------------------------------------- # # Functions # --------------------------------------------------------------------------- # # git repository info (like svn info) function info() {
#[ -z ${1} ] && fail "${FUNCNAME}: REPOSITORY DIR not set" 1
#pushd ${1} >/dev/null
# Find base of git directory
#while [ ! -d .git ] && [ ! `pwd` = "/" ]; do cd ..; done
# Show various information about this git directory
if [ -d .git ]; then