##// END OF EJS Templates
check-code: Only call check-code if __name__ = "__main__"....
check-code: Only call check-code if __name__ = "__main__". This changeset moves the code that actually executes something to the "if __name__ = '__main__'" section to allow the file to be imported as a module.

File last commit:

r406:d8abb687 default
r10716:5f92bde7 default
Show More
git-cat-file
5 lines | 69 B | text/plain | TextLexer
#!/bin/sh
op=`basename $0 | sed -e 's/^git-//'`
exec hgit $op "$@"