Mercurial > repo
view bin/addquote @ 1721:ab80805a8878
<elliott> echo "#!/bin/sh" >bin/undo; echo \'hg diff -c "$@" | patch -R\' >>bin/undo; chmod +x bin/undo
author | HackBot |
---|---|
date | Thu, 24 Jan 2013 21:13:03 +0000 |
parents | c091565553db |
children | 1c1429d055bc |
line wrap: on
line source
#!/bin/sh [ "$1" ] || exit 1 printf "%s\n" "$1" >>quotes printf "%d) %s" $(qc | cut -d' ' -f1) "$1"