#!/bin/bash #------------------------------------------------------------------------------# # vi: set sw=4 ts=4 ai: ("set modeline" in ~/.exrc) # #------------------------------------------------------------------------------# #------------------------------------------------------------------------------# # V e r s i o n i n f o r m a t i o n # #------------------------------------------------------------------------------# # $Id:: git.collapse 5 2011-03-09 14:16:28 tonk $: # # $Revision:: 5 $: # # $Author:: Ton Kersten $: # # $Date:: 2011-03-09 14:18:49 +0100 (Wed, 09 Mar 2011) $: # # $Hash:: ec78389e399cbecfe113710b2ae4d3d4ce3e7647 (tonk) $: # #------------------------------------------------------------------------------# # E n d o f v e r s i o n i n f o r m a t i o n # #------------------------------------------------------------------------------# len="${GIT_LEN:-66}" spc="$(printf "%80s" "")" sed -e 's!\([[:space:]]*\$[H]ash::\).*\$:!\1 '"${spc:0:${len}}"'\$:!' \ -e 's!\([[:space:]]*\$[N]SId\).*\$!\1\$!' \ -e 's!\([[:space:]]*\$[U]RL::\).*\$:!\1\$:!'