mirror of
https://github.com/kennethreitz-archive/git-export.git
synced 2026-06-05 23:50:19 +00:00
Added git-export stub.
This commit is contained in:
Executable
+20
@@ -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=<string>]"
|
||||
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
|
||||
Reference in New Issue
Block a user