commit 2943c02af22512fa0dad4b4a94089642ffa692db Author: Daniel Schierbeck Date: Thu Oct 16 17:26:01 2008 +0200 Added git-export stub. diff --git a/git-export b/git-export new file mode 100755 index 0000000..e778731 --- /dev/null +++ b/git-export @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright (c) 2008 Daniel Schierbeck +# +# Export the contents of the git index to a specified directory + +USAGE="[-f | --force] [-d | --destination=]" +LONG_USAGE="Export the contents of the git index to a specified directory" +SUBDIRECTORY_OK=Yes +. git-sh-setup + +if [ -f .git ]; then + echo 1>&2 "fatal: not a git repository" + exit 127 +fi + +if [ $# -ne 1 ]; then + echo 1>&2 "Usage: $0 destination" + exit 127 +fi