Add "git-sh-setup-script" for common git shell script setup

It sets up the normal git environment variables and a few helper
functions (currently just "die()"), and returns ok if it all looks like
a git archive.  So use it something like

	. git-sh-setup-script || die "Not a git archive"

to make the rest of the git scripts more careful and readable.
10 files changed
tree: c4c5637417a6e7c3e4c7d38b82e73cf4ef1c09fa
  1. Documentation/
  2. mozilla-sha1/
  3. ppc/
  4. t/
  5. apply.c
  6. blob.c
  7. blob.h
  8. cache.h
  9. cat-file.c
  10. check-files.c
  11. checkout-cache.c
  12. clone-pack.c
  13. commit-tree.c
  14. commit.c
  15. commit.h
  16. connect.c
  17. convert-cache.c
  18. COPYING
  19. count-delta.c
  20. count-delta.h
  21. csum-file.c
  22. csum-file.h
  23. date.c
  24. delta.h
  25. diff-cache.c
  26. diff-delta.c
  27. diff-files.c
  28. diff-helper.c
  29. diff-stages.c
  30. diff-tree.c
  31. diff.c
  32. diff.h
  33. diffcore-break.c
  34. diffcore-order.c
  35. diffcore-pathspec.c
  36. diffcore-pickaxe.c
  37. diffcore-rename.c
  38. diffcore.h
  39. entry.c
  40. epoch.c
  41. epoch.h
  42. export.c
  43. fetch-pack.c
  44. fsck-cache.c
  45. get-tar-commit-id.c
  46. git
  47. git-add-script
  48. git-apply-patch-script
  49. git-checkout-script
  50. git-cherry
  51. git-clone-script
  52. git-commit-script
  53. git-cvsimport-script
  54. git-diff-script
  55. git-external-diff-script
  56. git-fetch-script
  57. git-format-patch-script
  58. git-log-script
  59. git-merge-one-file-script
  60. git-prune-script
  61. git-pull-script
  62. git-rebase-script
  63. git-relink-script
  64. git-repack-script
  65. git-reset-script
  66. git-resolve-script
  67. git-sh-setup-script
  68. git-shortlog
  69. git-status-script
  70. git-tag-script
  71. git-verify-tag-script
  72. git-whatchanged
  73. git.spec.in
  74. gitenv.c
  75. gitk
  76. http-pull.c
  77. index.c
  78. init-db.c
  79. INSTALL
  80. local-pull.c
  81. ls-files.c
  82. ls-tree.c
  83. Makefile
  84. merge-base.c
  85. merge-cache.c
  86. mktag.c
  87. object.c
  88. object.h
  89. pack-check.c
  90. pack-objects.c
  91. pack.h
  92. patch-delta.c
  93. patch-id.c
  94. pkt-line.c
  95. pkt-line.h
  96. prune-packed.c
  97. pull.c
  98. pull.h
  99. read-cache.c
  100. read-tree.c
  101. README
  102. receive-pack.c
  103. refs.c
  104. refs.h
  105. rev-list.c
  106. rev-parse.c
  107. rev-tree.c
  108. rsh.c
  109. rsh.h
  110. send-pack.c
  111. sha1_file.c
  112. show-index.c
  113. ssh-pull.c
  114. ssh-push.c
  115. strbuf.c
  116. strbuf.h
  117. stripspace.c
  118. tag.c
  119. tag.h
  120. tar-tree.c
  121. test-date.c
  122. test-delta.c
  123. tree.c
  124. tree.h
  125. unpack-file.c
  126. unpack-objects.c
  127. update-cache.c
  128. upload-pack.c
  129. usage.c
  130. verify-pack.c
  131. write-blob.c
  132. write-tree.c