Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding files

  • Loading branch information...
commit c3d274c186ae04218efe96337b5805d6151ba519 1 parent 5c5f805
Alex Fish authored
Showing with 34,687 additions and 1 deletion.
  1. +21 −0 .bash_profile
  2. +39 −0 Prompt/.aliases
  3. +2,738 −0 Prompt/.git-completion.sh
  4. +15 −0 Prompt/.prompt
  5. +13 −0 Prompt/.xcode-aliases
  6. +17 −1 README.md
  7. +214 −0 Sublime Text 2/Packages/ASP/ASP.tmLanguage
  8. BIN  Sublime Text 2/Packages/ASP/ASP.tmLanguage.cache
  9. +74 −0 Sublime Text 2/Packages/ASP/HTML-ASP.tmLanguage
  10. BIN  Sublime Text 2/Packages/ASP/HTML-ASP.tmLanguage.cache
  11. +267 −0 Sublime Text 2/Packages/ActionScript/ActionScript.tmLanguage
  12. BIN  Sublime Text 2/Packages/ActionScript/ActionScript.tmLanguage.cache
  13. +2,142 −0 Sublime Text 2/Packages/AppleScript/AppleScript.tmLanguage
  14. BIN  Sublime Text 2/Packages/AppleScript/AppleScript.tmLanguage.cache
  15. +111 −0 Sublime Text 2/Packages/Batch File/Batch File.tmLanguage
  16. BIN  Sublime Text 2/Packages/Batch File/Batch File.tmLanguage.cache
  17. +142 −0 Sublime Text 2/Packages/C#/Build.tmLanguage
  18. BIN  Sublime Text 2/Packages/C#/Build.tmLanguage.cache
  19. +530 −0 Sublime Text 2/Packages/C#/C#.tmLanguage
  20. BIN  Sublime Text 2/Packages/C#/C#.tmLanguage.cache
  21. +8 −0 Sublime Text 2/Packages/C++/#ifndef-#define-#endif.sublime-snippet
  22. +6 −0 Sublime Text 2/Packages/C++/#include-(inc angle).sublime-snippet
  23. +6 −0 Sublime Text 2/Packages/C++/#include-(inc).sublime-snippet
  24. +6 −0 Sublime Text 2/Packages/C++/$1.begin()-$1.end()-(beginend).sublime-snippet
  25. +10 −0 Sublime Text 2/Packages/C++/010-main()-(main).sublime-snippet
  26. +9 −0 Sublime Text 2/Packages/C++/030-for-int-loop-(fori).sublime-snippet
  27. +14 −0 Sublime Text 2/Packages/C++/C++.sublime-build
  28. +3 −0  Sublime Text 2/Packages/C++/C++.sublime-settings
  29. +491 −0 Sublime Text 2/Packages/C++/C++.tmLanguage
  30. BIN  Sublime Text 2/Packages/C++/C++.tmLanguage.cache
  31. +1,126 −0 Sublime Text 2/Packages/C++/C.tmLanguage
  32. BIN  Sublime Text 2/Packages/C++/C.tmLanguage.cache
  33. +42 −0 Sublime Text 2/Packages/C++/Comments (C++).tmPreferences
  34. BIN  Sublime Text 2/Packages/C++/Comments (C++).tmPreferences.cache
  35. +13 −0 Sublime Text 2/Packages/C++/Completion Rules.tmPreferences
  36. BIN  Sublime Text 2/Packages/C++/Completion Rules.tmPreferences.cache
  37. +6 −0 Sublime Text 2/Packages/C++/Enumeration.sublime-snippet
  38. +40 −0 Sublime Text 2/Packages/C++/Indentation Rules.tmPreferences
  39. BIN  Sublime Text 2/Packages/C++/Indentation Rules.tmPreferences.cache
  40. +20 −0 Sublime Text 2/Packages/C++/Symbol List - Indent Class Methods.tmPreferences
  41. BIN  Sublime Text 2/Packages/C++/Symbol List - Indent Class Methods.tmPreferences.cache
  42. +20 −0 Sublime Text 2/Packages/C++/Symbol List - Prefix Banner Items.tmPreferences
  43. BIN  Sublime Text 2/Packages/C++/Symbol List - Prefix Banner Items.tmPreferences.cache
  44. +6 −0 Sublime Text 2/Packages/C++/Typedef.sublime-snippet
  45. +13 −0 Sublime Text 2/Packages/C++/class-..-(class).sublime-snippet
  46. +9 −0 Sublime Text 2/Packages/C++/do...while-loop-(do).sublime-snippet
  47. +9 −0 Sublime Text 2/Packages/C++/forv.sublime-snippet
  48. +6 −0 Sublime Text 2/Packages/C++/fprintf.sublime-snippet
  49. +9 −0 Sublime Text 2/Packages/C++/if-..-(if).sublime-snippet
  50. +10 −0 Sublime Text 2/Packages/C++/namespace-..-(namespace).sublime-snippet
  51. +6 −0 Sublime Text 2/Packages/C++/printf-..-(printf).sublime-snippet
  52. +13 −0 Sublime Text 2/Packages/C++/read-file-(readF).sublime-snippet
  53. +6 −0 Sublime Text 2/Packages/C++/std-map-(map).sublime-snippet
  54. +6 −0 Sublime Text 2/Packages/C++/std-vector-(v).sublime-snippet
  55. +9 −0 Sublime Text 2/Packages/C++/struct.sublime-snippet
  56. +6 −0 Sublime Text 2/Packages/C++/template-typename-..-(template).sublime-snippet
  57. +1,010 −0 Sublime Text 2/Packages/CSS/CSS.tmLanguage
  58. BIN  Sublime Text 2/Packages/CSS/CSS.tmLanguage.cache
  59. +36 −0 Sublime Text 2/Packages/CSS/Comments.tmPreferences
  60. BIN  Sublime Text 2/Packages/CSS/Comments.tmPreferences.cache
  61. +27 −0 Sublime Text 2/Packages/CSS/Default (Linux).sublime-keymap
  62. +27 −0 Sublime Text 2/Packages/CSS/Default (OSX).sublime-keymap
  63. +27 −0 Sublime Text 2/Packages/CSS/Default (Windows).sublime-keymap
  64. +19 −0 Sublime Text 2/Packages/CSS/Symbol List Group.tmPreferences
  65. BIN  Sublime Text 2/Packages/CSS/Symbol List Group.tmPreferences.cache
  66. +19 −0 Sublime Text 2/Packages/CSS/Symbol List.tmPreferences
  67. BIN  Sublime Text 2/Packages/CSS/Symbol List.tmPreferences.cache
  68. +194 −0 Sublime Text 2/Packages/CSS/css_completions.py
  69. BIN  Sublime Text 2/Packages/CSS/css_completions.pyc
  70. +3,415 −0 Sublime Text 2/Packages/Clojure/Clojure.tmLanguage
  71. BIN  Sublime Text 2/Packages/Clojure/Clojure.tmLanguage.cache
  72. +24 −0 Sublime Text 2/Packages/Clojure/Comment.tmPreferences
  73. BIN  Sublime Text 2/Packages/Clojure/Comment.tmPreferences.cache
  74. +17 −0 Sublime Text 2/Packages/Clojure/Symbol List.tmPreferences
  75. BIN  Sublime Text 2/Packages/Clojure/Symbol List.tmPreferences.cache
  76. +1 −0  Sublime Text 2/Packages/CoffeeCompile/.gitignore
  77. +49 −0 Sublime Text 2/Packages/CoffeeCompile/CoffeeCompile.sublime-settings
  78. +3 −0  Sublime Text 2/Packages/CoffeeCompile/Keymaps/Default (Linux).sublime-keymap
  79. +3 −0  Sublime Text 2/Packages/CoffeeCompile/Keymaps/Default (OSX).sublime-keymap
  80. +3 −0  Sublime Text 2/Packages/CoffeeCompile/Keymaps/Default (Windows).sublime-keymap
  81. +3 −0  Sublime Text 2/Packages/CoffeeCompile/Menus/Context.sublime-menu
  82. +83 −0 Sublime Text 2/Packages/CoffeeCompile/Menus/Main.sublime-menu
  83. +59 −0 Sublime Text 2/Packages/CoffeeCompile/README.md
  84. +147 −0 Sublime Text 2/Packages/CoffeeCompile/coffee_compile.py
  85. +1 −0  Sublime Text 2/Packages/CoffeeCompile/package-metadata.json
  86. +10 −0 Sublime Text 2/Packages/CoffeeScript/.gitignore
  87. +161 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.py
  88. +13 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.sublime-build
  89. +38 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.sublime-commands
  90. +52 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.sublime-settings
  91. +746 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.tmLanguage
  92. +34 −0 Sublime Text 2/Packages/CoffeeScript/CoffeeScript.tmPreferences
  93. +25 −0 Sublime Text 2/Packages/CoffeeScript/Indent.tmPreferences
  94. +11 −0 Sublime Text 2/Packages/CoffeeScript/Keymaps/Default (Linux).sublime-keymap
  95. +11 −0 Sublime Text 2/Packages/CoffeeScript/Keymaps/Default (OSX).sublime-keymap
  96. +11 −0 Sublime Text 2/Packages/CoffeeScript/Keymaps/Default (Windows).sublime-keymap
  97. +149 −0 Sublime Text 2/Packages/CoffeeScript/README.md
  98. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Array comprehension.tmSnippet
  99. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Bound Function.tmSnippet
  100. +18 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Class.tmSnippet
  101. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Console Log.tmSnippet
  102. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Else if.tmSnippet
  103. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Else.tmSnippet
  104. +17 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Function.tmSnippet
  105. +18 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/If Else.tmSnippet
  106. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/If.tmSnippet
  107. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Interpolated Code.tmSnippet
  108. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Object comprehension.tmSnippet
  109. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Range comprehension (exclusive).tmSnippet
  110. +16 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Range comprehension (inclusive).tmSnippet
  111. +18 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Switch.tmSnippet
  112. +15 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Ternary If.tmSnippet
  113. +18 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Try Catch.tmSnippet
  114. +15 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/Unless.tmSnippet
  115. +14 −0 Sublime Text 2/Packages/CoffeeScript/Snippets/require.tmSnippet
  116. +17 −0 Sublime Text 2/Packages/CoffeeScript/Symbol List.tmPreferences
  117. +10 −0 Sublime Text 2/Packages/CoffeeScript/changelogs/0.5.1.txt
  118. +9 −0 Sublime Text 2/Packages/CoffeeScript/changelogs/0.5.2.txt
  119. +13 −0 Sublime Text 2/Packages/CoffeeScript/changelogs/0.5.3.txt
  120. +5 −0 Sublime Text 2/Packages/CoffeeScript/messages.json
  121. +277 −0 Sublime Text 2/Packages/Color Scheme - Default/All Hallow's Eve.tmTheme
  122. +557 −0 Sublime Text 2/Packages/Color Scheme - Default/Amy.tmTheme
  123. +350 −0 Sublime Text 2/Packages/Color Scheme - Default/Blackboard.tmTheme
  124. +559 −0 Sublime Text 2/Packages/Color Scheme - Default/Cobalt.tmTheme
  125. +441 −0 Sublime Text 2/Packages/Color Scheme - Default/Dawn.tmTheme
  126. +439 −0 Sublime Text 2/Packages/Color Scheme - Default/Eiffel.tmTheme
  127. +402 −0 Sublime Text 2/Packages/Color Scheme - Default/Espresso Libre.tmTheme
  128. +235 −0 Sublime Text 2/Packages/Color Scheme - Default/IDLE.tmTheme
  129. +291 −0 Sublime Text 2/Packages/Color Scheme - Default/LAZY.tmTheme
  130. +450 −0 Sublime Text 2/Packages/Color Scheme - Default/Mac Classic.tmTheme
  131. +376 −0 Sublime Text 2/Packages/Color Scheme - Default/MagicWB (Amiga).tmTheme
  132. +390 −0 Sublime Text 2/Packages/Color Scheme - Default/Monokai Bright.tmTheme
  133. +387 −0 Sublime Text 2/Packages/Color Scheme - Default/Monokai.tmTheme
  134. BIN  Sublime Text 2/Packages/Color Scheme - Default/Monokai.tmTheme.cache
  135. +701 −0 Sublime Text 2/Packages/Color Scheme - Default/Pastels on Dark.tmTheme
  136. +336 −0 Sublime Text 2/Packages/Color Scheme - Default/Slush & Poppies.tmTheme
  137. +1,897 −0 Sublime Text 2/Packages/Color Scheme - Default/Solarized (Dark).tmTheme
  138. +1,875 −0 Sublime Text 2/Packages/Color Scheme - Default/Solarized (Light).tmTheme
  139. +212 −0 Sublime Text 2/Packages/Color Scheme - Default/SpaceCadet.tmTheme
  140. +665 −0 Sublime Text 2/Packages/Color Scheme - Default/Sunburst.tmTheme
  141. +514 −0 Sublime Text 2/Packages/Color Scheme - Default/Twilight.tmTheme
  142. BIN  Sublime Text 2/Packages/Color Scheme - Default/Twilight.tmTheme.cache
  143. +343 −0 Sublime Text 2/Packages/Color Scheme - Default/Zenburnesque.tmTheme
  144. +286 −0 Sublime Text 2/Packages/Color Scheme - Default/iPlastic.tmTheme
  145. +66 −0 Sublime Text 2/Packages/D/Comments.tmPreferences
  146. BIN  Sublime Text 2/Packages/D/Comments.tmPreferences.cache
  147. +5 −0 Sublime Text 2/Packages/D/D.sublime-build
  148. +908 −0 Sublime Text 2/Packages/D/D.tmLanguage
  149. BIN  Sublime Text 2/Packages/D/D.tmLanguage.cache
  150. +26 −0 Sublime Text 2/Packages/D/Indentation Rules.tmPreferences
  151. BIN  Sublime Text 2/Packages/D/Indentation Rules.tmPreferences.cache
  152. +20 −0 Sublime Text 2/Packages/D/Symbol List-Method-Constructor.tmPreferences
  153. BIN  Sublime Text 2/Packages/D/Symbol List-Method-Constructor.tmPreferences.cache
  154. +11 −0 Sublime Text 2/Packages/D/class.sublime-snippet
  155. +6 −0 Sublime Text 2/Packages/D/constant.sublime-snippet
  156. +8 −0 Sublime Text 2/Packages/D/debug.sublime-snippet
  157. +8 −0 Sublime Text 2/Packages/D/debugm.sublime-snippet
  158. +6 −0 Sublime Text 2/Packages/D/enum.sublime-snippet
  159. +6 −0 Sublime Text 2/Packages/D/err-format.sublime-snippet
  160. +6 −0 Sublime Text 2/Packages/D/err.sublime-snippet
  161. +8 −0 Sublime Text 2/Packages/D/foreach-reverse.sublime-snippet
  162. +8 −0 Sublime Text 2/Packages/D/foreach.sublime-snippet
  163. +11 −0 Sublime Text 2/Packages/D/if-else.sublime-snippet
  164. +8 −0 Sublime Text 2/Packages/D/if.sublime-snippet
  165. +6 −0 Sublime Text 2/Packages/D/import.sublime-snippet
  166. +6 −0 Sublime Text 2/Packages/D/log-error.sublime-snippet
  167. +6 −0 Sublime Text 2/Packages/D/log-fatal.sublime-snippet
  168. +6 −0 Sublime Text 2/Packages/D/log-info.sublime-snippet
  169. +6 −0 Sublime Text 2/Packages/D/log-trace.sublime-snippet
  170. +6 −0 Sublime Text 2/Packages/D/log-warn.sublime-snippet
  171. +12 −0 Sublime Text 2/Packages/D/logger.sublime-snippet
  172. +9 −0 Sublime Text 2/Packages/D/main-with-args.sublime-snippet
  173. +8 −0 Sublime Text 2/Packages/D/main.sublime-snippet
  174. +11 −0 Sublime Text 2/Packages/D/method.sublime-snippet
  175. +6 −0 Sublime Text 2/Packages/D/out-format.sublime-snippet
  176. +6 −0 Sublime Text 2/Packages/D/out.sublime-snippet
  177. +6 −0 Sublime Text 2/Packages/D/return.sublime-snippet
  178. +11 −0 Sublime Text 2/Packages/D/struct.sublime-snippet
  179. +12 −0 Sublime Text 2/Packages/D/try-catch-finally.sublime-snippet
  180. +10 −0 Sublime Text 2/Packages/D/try-catch.sublime-snippet
  181. +10 −0 Sublime Text 2/Packages/D/try-finally.sublime-snippet
  182. +8 −0 Sublime Text 2/Packages/D/unittest.sublime-snippet
  183. +8 −0 Sublime Text 2/Packages/D/version.sublime-snippet
  184. +8 −0 Sublime Text 2/Packages/D/while.sublime-snippet
  185. +10 −0 Sublime Text 2/Packages/DashDoc/DashDoc.py
  186. BIN  Sublime Text 2/Packages/DashDoc/DashDoc.pyc
  187. +3 −0  Sublime Text 2/Packages/DashDoc/Default (OSX).sublime-keymap
  188. +5 −0 Sublime Text 2/Packages/DashDoc/README.md
  189. +1 −0  Sublime Text 2/Packages/DashDoc/package-metadata.json
  190. +20 −0 Sublime Text 2/Packages/DashDoc/packages.json
  191. +6 −0 Sublime Text 2/Packages/Default/Add Line Before.sublime-macro
  192. +6 −0 Sublime Text 2/Packages/Default/Add Line in Braces.sublime-macro
  193. +4 −0 Sublime Text 2/Packages/Default/Add Line.sublime-macro
  194. +13 −0 Sublime Text 2/Packages/Default/Context.sublime-menu
  195. +650 −0 Sublime Text 2/Packages/Default/Default (Linux).sublime-keymap
  196. +98 −0 Sublime Text 2/Packages/Default/Default (Linux).sublime-mousemap
  197. +624 −0 Sublime Text 2/Packages/Default/Default (OSX).sublime-keymap
  198. +98 −0 Sublime Text 2/Packages/Default/Default (OSX).sublime-mousemap
  199. +641 −0 Sublime Text 2/Packages/Default/Default (Windows).sublime-keymap
  200. +131 −0 Sublime Text 2/Packages/Default/Default (Windows).sublime-mousemap
  201. +118 −0 Sublime Text 2/Packages/Default/Default.sublime-commands
  202. +4 −0 Sublime Text 2/Packages/Default/Delete Left Right.sublime-macro
  203. +5 −0 Sublime Text 2/Packages/Default/Delete Line.sublime-macro
  204. +5 −0 Sublime Text 2/Packages/Default/Delete to BOL.sublime-macro
  205. +5 −0 Sublime Text 2/Packages/Default/Delete to EOL.sublime-macro
  206. +5 −0 Sublime Text 2/Packages/Default/Delete to Hard BOL.sublime-macro
  207. +5 −0 Sublime Text 2/Packages/Default/Delete to Hard EOL.sublime-macro
  208. +8 −0 Sublime Text 2/Packages/Default/Distraction Free.sublime-settings
  209. +50 −0 Sublime Text 2/Packages/Default/Find Results.hidden-tmLanguage
  210. BIN  Sublime Text 2/Packages/Default/Find Results.hidden-tmLanguage.cache
  211. +8 −0 Sublime Text 2/Packages/Default/Find in Files.sublime-menu
  212. BIN  Sublime Text 2/Packages/Default/Icon.png
  213. +1 −0  Sublime Text 2/Packages/Default/Ignored Packages.cache
  214. +13 −0 Sublime Text 2/Packages/Default/Indentation Rules - Comments.tmPreferences
  215. BIN  Sublime Text 2/Packages/Default/Indentation Rules - Comments.tmPreferences.cache
  216. +19 −0 Sublime Text 2/Packages/Default/Indentation Rules.tmPreferences
  217. BIN  Sublime Text 2/Packages/Default/Indentation Rules.tmPreferences.cache
  218. +17 −0 Sublime Text 2/Packages/Default/Indentation.sublime-menu
  219. +809 −0 Sublime Text 2/Packages/Default/Main.sublime-menu
  220. BIN  Sublime Text 2/Packages/Default/Meta Info Summary.cache
  221. +5 −0 Sublime Text 2/Packages/Default/Minimap.sublime-settings
  222. BIN  Sublime Text 2/Packages/Default/Miscellaneous.tmPreferences.cache
  223. +5 −0 Sublime Text 2/Packages/Default/Preferences (Linux).sublime-settings
  224. +9 −0 Sublime Text 2/Packages/Default/Preferences (OSX).sublime-settings
  225. +4 −0 Sublime Text 2/Packages/Default/Preferences (Windows).sublime-settings
  226. +325 −0 Sublime Text 2/Packages/Default/Preferences.sublime-settings
  227. 0  Sublime Text 2/Packages/Default/Regex Format Widget.sublime-settings
  228. +3 −0  Sublime Text 2/Packages/Default/Regex Widget.sublime-settings
  229. +4 −0 Sublime Text 2/Packages/Default/Side Bar Mount Point.sublime-menu
  230. +11 −0 Sublime Text 2/Packages/Default/Side Bar.sublime-menu
  231. BIN  Sublime Text 2/Packages/Default/Startup.cache
  232. +17 −0 Sublime Text 2/Packages/Default/Symbol List.tmPreferences
  233. BIN  Sublime Text 2/Packages/Default/Symbol List.tmPreferences.cache
  234. BIN  Sublime Text 2/Packages/Default/Syntax Summary.cache
  235. +6 −0 Sublime Text 2/Packages/Default/Syntax.sublime-menu
  236. +8 −0 Sublime Text 2/Packages/Default/Tab Context.sublime-menu
  237. +7 −0 Sublime Text 2/Packages/Default/Widget Context.sublime-menu
  238. +15 −0 Sublime Text 2/Packages/Default/Widget.sublime-settings
  239. +233 −0 Sublime Text 2/Packages/Default/comment.py
  240. BIN  Sublime Text 2/Packages/Default/comment.pyc
  241. +10 −0 Sublime Text 2/Packages/Default/copy_path.py
  242. BIN  Sublime Text 2/Packages/Default/copy_path.pyc
  243. +73 −0 Sublime Text 2/Packages/Default/delete_word.py
  244. BIN  Sublime Text 2/Packages/Default/delete_word.pyc
  245. +62 −0 Sublime Text 2/Packages/Default/detect_indentation.py
  246. BIN  Sublime Text 2/Packages/Default/detect_indentation.pyc
  247. +11 −0 Sublime Text 2/Packages/Default/duplicate_line.py
  248. BIN  Sublime Text 2/Packages/Default/duplicate_line.pyc
  249. +5 −0 Sublime Text 2/Packages/Default/echo.py
  250. BIN  Sublime Text 2/Packages/Default/echo.pyc
  251. +229 −0 Sublime Text 2/Packages/Default/exec.py
  252. BIN  Sublime Text 2/Packages/Default/exec.pyc
  253. +125 −0 Sublime Text 2/Packages/Default/fold.py
  254. BIN  Sublime Text 2/Packages/Default/fold.pyc
  255. +45 −0 Sublime Text 2/Packages/Default/font.py
  256. BIN  Sublime Text 2/Packages/Default/font.pyc
  257. +33 −0 Sublime Text 2/Packages/Default/goto_line.py
  258. BIN  Sublime Text 2/Packages/Default/goto_line.pyc
  259. +168 −0 Sublime Text 2/Packages/Default/indentation.py
  260. BIN  Sublime Text 2/Packages/Default/indentation.pyc
  261. +107 −0 Sublime Text 2/Packages/Default/kill_ring.py
  262. BIN  Sublime Text 2/Packages/Default/kill_ring.pyc
  263. +43 −0 Sublime Text 2/Packages/Default/mark.py
  264. BIN  Sublime Text 2/Packages/Default/mark.pyc
  265. +53 −0 Sublime Text 2/Packages/Default/new_templates.py
  266. BIN  Sublime Text 2/Packages/Default/new_templates.pyc
  267. +12 −0 Sublime Text 2/Packages/Default/open_file_settings.py
  268. BIN  Sublime Text 2/Packages/Default/open_file_settings.pyc
  269. +13 −0 Sublime Text 2/Packages/Default/open_in_browser.py
  270. BIN  Sublime Text 2/Packages/Default/open_in_browser.pyc
  271. +211 −0 Sublime Text 2/Packages/Default/paragraph.py
  272. BIN  Sublime Text 2/Packages/Default/paragraph.pyc
  273. +10 −0 Sublime Text 2/Packages/Default/save_on_focus_lost.py
  274. BIN  Sublime Text 2/Packages/Default/save_on_focus_lost.pyc
  275. +13 −0 Sublime Text 2/Packages/Default/scroll.py
  276. BIN  Sublime Text 2/Packages/Default/scroll.pyc
  277. +14 −0 Sublime Text 2/Packages/Default/send2trash/__init__.py
  278. BIN  Sublime Text 2/Packages/Default/send2trash/__init__.pyc
  279. +44 −0 Sublime Text 2/Packages/Default/send2trash/plat_osx.py
  280. BIN  Sublime Text 2/Packages/Default/send2trash/plat_osx.pyc
  281. +154 −0 Sublime Text 2/Packages/Default/send2trash/plat_other.py
  282. +55 −0 Sublime Text 2/Packages/Default/send2trash/plat_win.py
  283. +70 −0 Sublime Text 2/Packages/Default/set_unsaved_view_name.py
  284. BIN  Sublime Text 2/Packages/Default/set_unsaved_view_name.pyc
  285. +84 −0 Sublime Text 2/Packages/Default/side_bar.py
  286. BIN  Sublime Text 2/Packages/Default/side_bar.pyc
  287. +184 −0 Sublime Text 2/Packages/Default/sort.py
  288. BIN  Sublime Text 2/Packages/Default/sort.pyc
  289. +110 −0 Sublime Text 2/Packages/Default/swap_line.py
  290. BIN  Sublime Text 2/Packages/Default/swap_line.pyc
  291. +42 −0 Sublime Text 2/Packages/Default/switch_file.py
  292. BIN  Sublime Text 2/Packages/Default/switch_file.pyc
  293. +38 −0 Sublime Text 2/Packages/Default/transform.py
  294. BIN  Sublime Text 2/Packages/Default/transform.pyc
  295. +102 −0 Sublime Text 2/Packages/Default/transpose.py
  296. BIN  Sublime Text 2/Packages/Default/transpose.pyc
  297. +19 −0 Sublime Text 2/Packages/Default/trim_trailing_white_space.py
  298. BIN  Sublime Text 2/Packages/Default/trim_trailing_white_space.pyc
  299. +4 −0 Sublime Text 2/Packages/Diff/Context.sublime-menu
  300. +229 −0 Sublime Text 2/Packages/Diff/Diff.tmLanguage
Sorry, we could not display the entire diff because too many files (2,175) changed.
View
21 .bash_profile
@@ -0,0 +1,21 @@
+export PATH=/usr/local/bin:$PATH
+
+source ~/git-completion.bash
+
+export LS_OPTIONS='--color=auto'
+export CLICOLOR='Yes'
+export LSCOLORS='Bxgxfxfxcxdxdxhbadbxbx'
+
+export RAILS_ENV=development
+
+# Include Mios aliases
+. ~/.aliases
+. ~/nvm/nvm.sh
+
+#Added by BuildTools
+export USTWO_BUILDTOOLS_HOME=/Users/alexfish/web/buildtools
+#export PATH="$HOME/.rbenv/bin:$PATH"
+#eval "$(rbenv init -)"
+
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+
View
39 Prompt/.aliases
@@ -0,0 +1,39 @@
+. ~/.prompt
+. ~/.xcode-aliases
+
+alias l='ls -alFh'
+alias c='clear'
+alias pico='pico -w'
+alias gpat='git push --all && git push --tags'
+alias gs='git status'
+alias g-='git pull --rebase'
+alias g+='git push'
+alias gg='g- && g+'
+alias rogo='git log --oneline --author=katt --after=`date +%Y-%m-%d`" 00:00" | cut -d" " -f2- | pbcopy'
+alias rbp='rails_best_practices -f html --with-textmate . ; open rails_best_practices_output.html'
+alias gco='git co'
+alias gci='git ci'
+alias grb='git rb'
+
+alias xcode='open -a xcode'
+alias text='open -a TextEdit'
+alias pre='open -a Preview'
+alias l='ls'
+alias ll='ls -l'
+alias la='ls -a'
+alias lo='logout'
+alias c='clear'
+alias ttop='top -U $USER'
+alias gpt='git push && git push --tags'
+alias gptd='git push && git push --tags && git checkout develop'
+
+function vt {
+ PREVIOUS_TAG=`git describe | cut -d'-' -f1`
+
+ echo
+ echo "Showing commits from ${PREVIOUS_TAG} to HEAD"
+ echo
+
+ git log --oneline ${PREVIOUS_TAG}..HEAD
+ git log --oneline ${PREVIOUS_TAG}..HEAD | cut -d" " -f2- | pbcopy
+}
View
2,738 Prompt/.git-completion.sh
@@ -0,0 +1,2738 @@
+#!bash
+#
+# bash/zsh completion support for core Git.
+#
+# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
+# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
+# Distributed under the GNU General Public License, version 2.0.
+#
+# The contained completion routines provide support for completing:
+#
+# *) local and remote branch names
+# *) local and remote tag names
+# *) .git/remotes file names
+# *) git 'subcommands'
+# *) tree paths within 'ref:path/to/file' expressions
+# *) common --long-options
+#
+# To use these routines:
+#
+# 1) Copy this file to somewhere (e.g. ~/.git-completion.sh).
+# 2) Add the following line to your .bashrc/.zshrc:
+# source ~/.git-completion.sh
+#
+# 3) Consider changing your PS1 to also show the current branch:
+# Bash: PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
+# ZSH: PS1='[%n@%m %c$(__git_ps1 " (%s)")]\$ '
+#
+# The argument to __git_ps1 will be displayed only if you
+# are currently in a git repository. The %s token will be
+# the name of the current branch.
+#
+# In addition, if you set GIT_PS1_SHOWDIRTYSTATE to a nonempty
+# value, unstaged (*) and staged (+) changes will be shown next
+# to the branch name. You can configure this per-repository
+# with the bash.showDirtyState variable, which defaults to true
+# once GIT_PS1_SHOWDIRTYSTATE is enabled.
+#
+# You can also see if currently something is stashed, by setting
+# GIT_PS1_SHOWSTASHSTATE to a nonempty value. If something is stashed,
+# then a '$' will be shown next to the branch name.
+#
+# If you would like to see if there're untracked files, then you can
+# set GIT_PS1_SHOWUNTRACKEDFILES to a nonempty value. If there're
+# untracked files, then a '%' will be shown next to the branch name.
+#
+# If you would like to see the difference between HEAD and its
+# upstream, set GIT_PS1_SHOWUPSTREAM="auto". A "<" indicates
+# you are behind, ">" indicates you are ahead, and "<>"
+# indicates you have diverged. You can further control
+# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated
+# list of values:
+# verbose show number of commits ahead/behind (+/-) upstream
+# legacy don't use the '--count' option available in recent
+# versions of git-rev-list
+# git always compare HEAD to @{upstream}
+# svn always compare HEAD to your SVN upstream
+# By default, __git_ps1 will compare HEAD to your SVN upstream
+# if it can find one, or @{upstream} otherwise. Once you have
+# set GIT_PS1_SHOWUPSTREAM, you can override it on a
+# per-repository basis by setting the bash.showUpstream config
+# variable.
+#
+#
+# To submit patches:
+#
+# *) Read Documentation/SubmittingPatches
+# *) Send all patches to the current maintainer:
+#
+# "Shawn O. Pearce" <spearce@spearce.org>
+#
+# *) Always CC the Git mailing list:
+#
+# git@vger.kernel.org
+#
+
+if [[ -n ${ZSH_VERSION-} ]]; then
+ autoload -U +X bashcompinit && bashcompinit
+fi
+
+case "$COMP_WORDBREAKS" in
+*:*) : great ;;
+*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
+esac
+
+# __gitdir accepts 0 or 1 arguments (i.e., location)
+# returns location of .git repo
+__gitdir ()
+{
+ if [ -z "${1-}" ]; then
+ if [ -n "${__git_dir-}" ]; then
+ echo "$__git_dir"
+ elif [ -d .git ]; then
+ echo .git
+ else
+ git rev-parse --git-dir 2>/dev/null
+ fi
+ elif [ -d "$1/.git" ]; then
+ echo "$1/.git"
+ else
+ echo "$1"
+ fi
+}
+
+# stores the divergence from upstream in $p
+# used by GIT_PS1_SHOWUPSTREAM
+__git_ps1_show_upstream ()
+{
+ local key value
+ local svn_remote=() svn_url_pattern count n
+ local upstream=git legacy="" verbose=""
+
+ # get some config options from git-config
+ local output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
+ while read key value; do
+ case "$key" in
+ bash.showupstream)
+ GIT_PS1_SHOWUPSTREAM="$value"
+ if [[ -z "${GIT_PS1_SHOWUPSTREAM}" ]]; then
+ p=""
+ return
+ fi
+ ;;
+ svn-remote.*.url)
+ svn_remote[ $((${#svn_remote[@]} + 1)) ]="$value"
+ svn_url_pattern+="\\|$value"
+ upstream=svn+git # default upstream is SVN if available, else git
+ ;;
+ esac
+ done <<< "$output"
+
+ # parse configuration values
+ for option in ${GIT_PS1_SHOWUPSTREAM}; do
+ case "$option" in
+ git|svn) upstream="$option" ;;
+ verbose) verbose=1 ;;
+ legacy) legacy=1 ;;
+ esac
+ done
+
+ # Find our upstream
+ case "$upstream" in
+ git) upstream="@{upstream}" ;;
+ svn*)
+ # get the upstream from the "git-svn-id: ..." in a commit message
+ # (git-svn uses essentially the same procedure internally)
+ local svn_upstream=($(git log --first-parent -1 \
+ --grep="^git-svn-id: \(${svn_url_pattern#??}\)" 2>/dev/null))
+ if [[ 0 -ne ${#svn_upstream[@]} ]]; then
+ svn_upstream=${svn_upstream[ ${#svn_upstream[@]} - 2 ]}
+ svn_upstream=${svn_upstream%@*}
+ local n_stop="${#svn_remote[@]}"
+ for ((n=1; n <= n_stop; ++n)); do
+ svn_upstream=${svn_upstream#${svn_remote[$n]}}
+ done
+
+ if [[ -z "$svn_upstream" ]]; then
+ # default branch name for checkouts with no layout:
+ upstream=${GIT_SVN_ID:-git-svn}
+ else
+ upstream=${svn_upstream#/}
+ fi
+ elif [[ "svn+git" = "$upstream" ]]; then
+ upstream="@{upstream}"
+ fi
+ ;;
+ esac
+
+ # Find how many commits we are ahead/behind our upstream
+ if [[ -z "$legacy" ]]; then
+ count="$(git rev-list --count --left-right \
+ "$upstream"...HEAD 2>/dev/null)"
+ else
+ # produce equivalent output to --count for older versions of git
+ local commits
+ if commits="$(git rev-list --left-right "$upstream"...HEAD 2>/dev/null)"
+ then
+ local commit behind=0 ahead=0
+ for commit in $commits
+ do
+ case "$commit" in
+ "<"*) let ++behind
+ ;;
+ *) let ++ahead
+ ;;
+ esac
+ done
+ count="$behind $ahead"
+ else
+ count=""
+ fi
+ fi
+
+ # calculate the result
+ if [[ -z "$verbose" ]]; then
+ case "$count" in
+ "") # no upstream
+ p="" ;;
+ "0 0") # equal to upstream
+ p="=" ;;
+ "0 "*) # ahead of upstream
+ p=">" ;;
+ *" 0") # behind upstream
+ p="<" ;;
+ *) # diverged from upstream
+ p="<>" ;;
+ esac
+ else
+ case "$count" in
+ "") # no upstream
+ p="" ;;
+ "0 0") # equal to upstream
+ p=" u=" ;;
+ "0 "*) # ahead of upstream
+ p=" u+${count#0 }" ;;
+ *" 0") # behind upstream
+ p=" u-${count% 0}" ;;
+ *) # diverged from upstream
+ p=" u+${count#* }-${count% *}" ;;
+ esac
+ fi
+
+}
+
+
+# __git_ps1 accepts 0 or 1 arguments (i.e., format string)
+# returns text to add to bash PS1 prompt (includes branch name)
+__git_ps1 ()
+{
+ local g="$(__gitdir)"
+ if [ -n "$g" ]; then
+ local r=""
+ local b=""
+ if [ -f "$g/rebase-merge/interactive" ]; then
+ r="|REBASE-i"
+ b="$(cat "$g/rebase-merge/head-name")"
+ elif [ -d "$g/rebase-merge" ]; then
+ r="|REBASE-m"
+ b="$(cat "$g/rebase-merge/head-name")"
+ else
+ if [ -d "$g/rebase-apply" ]; then
+ if [ -f "$g/rebase-apply/rebasing" ]; then
+ r="|REBASE"
+ elif [ -f "$g/rebase-apply/applying" ]; then
+ r="|AM"
+ else
+ r="|AM/REBASE"
+ fi
+ elif [ -f "$g/MERGE_HEAD" ]; then
+ r="|MERGING"
+ elif [ -f "$g/CHERRY_PICK_HEAD" ]; then
+ r="|CHERRY-PICKING"
+ elif [ -f "$g/BISECT_LOG" ]; then
+ r="|BISECTING"
+ fi
+
+ b="$(git symbolic-ref HEAD 2>/dev/null)" || {
+
+ b="$(
+ case "${GIT_PS1_DESCRIBE_STYLE-}" in
+ (contains)
+ git describe --contains HEAD ;;
+ (branch)
+ git describe --contains --all HEAD ;;
+ (describe)
+ git describe HEAD ;;
+ (* | default)
+ git describe --tags --exact-match HEAD ;;
+ esac 2>/dev/null)" ||
+
+ b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." ||
+ b="unknown"
+ b="($b)"
+ }
+ fi
+
+ local w=""
+ local i=""
+ local s=""
+ local u=""
+ local c=""
+ local p=""
+
+ if [ "true" = "$(git rev-parse --is-inside-git-dir 2>/dev/null)" ]; then
+ if [ "true" = "$(git rev-parse --is-bare-repository 2>/dev/null)" ]; then
+ c="BARE:"
+ else
+ b="GIT_DIR!"
+ fi
+ elif [ "true" = "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then
+ if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ]; then
+ if [ "$(git config --bool bash.showDirtyState)" != "false" ]; then
+ git diff --no-ext-diff --quiet --exit-code || w="*"
+ if git rev-parse --quiet --verify HEAD >/dev/null; then
+ git diff-index --cached --quiet HEAD -- || i="+"
+ else
+ i="#"
+ fi
+ fi
+ fi
+ if [ -n "${GIT_PS1_SHOWSTASHSTATE-}" ]; then
+ git rev-parse --verify refs/stash >/dev/null 2>&1 && s="$"
+ fi
+
+ if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ]; then
+ if [ -n "$(git ls-files --others --exclude-standard)" ]; then
+ u="%"
+ fi
+ fi
+
+ if [ -n "${GIT_PS1_SHOWUPSTREAM-}" ]; then
+ __git_ps1_show_upstream
+ fi
+ fi
+
+ local f="$w$i$s$u"
+ printf "${1:- (%s)}" "$c${b##refs/heads/}${f:+ $f}$r$p"
+ fi
+}
+
+# __gitcomp_1 requires 2 arguments
+__gitcomp_1 ()
+{
+ local c IFS=' '$'\t'$'\n'
+ for c in $1; do
+ case "$c$2" in
+ --*=*) printf %s$'\n' "$c$2" ;;
+ *.) printf %s$'\n' "$c$2" ;;
+ *) printf %s$'\n' "$c$2 " ;;
+ esac
+ done
+}
+
+# The following function is based on code from:
+#
+# bash_completion - programmable completion functions for bash 3.2+
+#
+# Copyright © 2006-2008, Ian Macdonald <ian@caliban.org>
+# © 2009-2010, Bash Completion Maintainers
+# <bash-completion-devel@lists.alioth.debian.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# The latest version of this software can be obtained here:
+#
+# http://bash-completion.alioth.debian.org/
+#
+# RELEASE: 2.x
+
+# This function can be used to access a tokenized list of words
+# on the command line:
+#
+# __git_reassemble_comp_words_by_ref '=:'
+# if test "${words_[cword_-1]}" = -w
+# then
+# ...
+# fi
+#
+# The argument should be a collection of characters from the list of
+# word completion separators (COMP_WORDBREAKS) to treat as ordinary
+# characters.
+#
+# This is roughly equivalent to going back in time and setting
+# COMP_WORDBREAKS to exclude those characters. The intent is to
+# make option types like --date=<type> and <rev>:<path> easy to
+# recognize by treating each shell word as a single token.
+#
+# It is best not to set COMP_WORDBREAKS directly because the value is
+# shared with other completion scripts. By the time the completion
+# function gets called, COMP_WORDS has already been populated so local
+# changes to COMP_WORDBREAKS have no effect.
+#
+# Output: words_, cword_, cur_.
+
+__git_reassemble_comp_words_by_ref()
+{
+ local exclude i j first
+ # Which word separators to exclude?
+ exclude="${1//[^$COMP_WORDBREAKS]}"
+ cword_=$COMP_CWORD
+ if [ -z "$exclude" ]; then
+ words_=("${COMP_WORDS[@]}")
+ return
+ fi
+ # List of word completion separators has shrunk;
+ # re-assemble words to complete.
+ for ((i=0, j=0; i < ${#COMP_WORDS[@]}; i++, j++)); do
+ # Append each nonempty word consisting of just
+ # word separator characters to the current word.
+ first=t
+ while
+ [ $i -gt 0 ] &&
+ [ -n "${COMP_WORDS[$i]}" ] &&
+ # word consists of excluded word separators
+ [ "${COMP_WORDS[$i]//[^$exclude]}" = "${COMP_WORDS[$i]}" ]
+ do
+ # Attach to the previous token,
+ # unless the previous token is the command name.
+ if [ $j -ge 2 ] && [ -n "$first" ]; then
+ ((j--))
+ fi
+ first=
+ words_[$j]=${words_[j]}${COMP_WORDS[i]}
+ if [ $i = $COMP_CWORD ]; then
+ cword_=$j
+ fi
+ if (($i < ${#COMP_WORDS[@]} - 1)); then
+ ((i++))
+ else
+ # Done.
+ return
+ fi
+ done
+ words_[$j]=${words_[j]}${COMP_WORDS[i]}
+ if [ $i = $COMP_CWORD ]; then
+ cword_=$j
+ fi
+ done
+}
+
+if ! type _get_comp_words_by_ref >/dev/null 2>&1; then
+if [[ -z ${ZSH_VERSION:+set} ]]; then
+_get_comp_words_by_ref ()
+{
+ local exclude cur_ words_ cword_
+ if [ "$1" = "-n" ]; then
+ exclude=$2
+ shift 2
+ fi
+ __git_reassemble_comp_words_by_ref "$exclude"
+ cur_=${words_[cword_]}
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ cur)
+ cur=$cur_
+ ;;
+ prev)
+ prev=${words_[$cword_-1]}
+ ;;
+ words)
+ words=("${words_[@]}")
+ ;;
+ cword)
+ cword=$cword_
+ ;;
+ esac
+ shift
+ done
+}
+else
+_get_comp_words_by_ref ()
+{
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ cur)
+ cur=${COMP_WORDS[COMP_CWORD]}
+ ;;
+ prev)
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ ;;
+ words)
+ words=("${COMP_WORDS[@]}")
+ ;;
+ cword)
+ cword=$COMP_CWORD
+ ;;
+ -n)
+ # assume COMP_WORDBREAKS is already set sanely
+ shift
+ ;;
+ esac
+ shift
+ done
+}
+fi
+fi
+
+# __gitcomp accepts 1, 2, 3, or 4 arguments
+# generates completion reply with compgen
+__gitcomp ()
+{
+ local cur_="$cur"
+
+ if [ $# -gt 2 ]; then
+ cur_="$3"
+ fi
+ case "$cur_" in
+ --*=)
+ COMPREPLY=()
+ ;;
+ *)
+ local IFS=$'\n'
+ COMPREPLY=($(compgen -P "${2-}" \
+ -W "$(__gitcomp_1 "${1-}" "${4-}")" \
+ -- "$cur_"))
+ ;;
+ esac
+}
+
+# __git_heads accepts 0 or 1 arguments (to pass to __gitdir)
+__git_heads ()
+{
+ local cmd i is_hash=y dir="$(__gitdir "${1-}")"
+ if [ -d "$dir" ]; then
+ git --git-dir="$dir" for-each-ref --format='%(refname:short)' \
+ refs/heads
+ return
+ fi
+ for i in $(git ls-remote "${1-}" 2>/dev/null); do
+ case "$is_hash,$i" in
+ y,*) is_hash=n ;;
+ n,*^{}) is_hash=y ;;
+ n,refs/heads/*) is_hash=y; echo "${i#refs/heads/}" ;;
+ n,*) is_hash=y; echo "$i" ;;
+ esac
+ done
+}
+
+# __git_tags accepts 0 or 1 arguments (to pass to __gitdir)
+__git_tags ()
+{
+ local cmd i is_hash=y dir="$(__gitdir "${1-}")"
+ if [ -d "$dir" ]; then
+ git --git-dir="$dir" for-each-ref --format='%(refname:short)' \
+ refs/tags
+ return
+ fi
+ for i in $(git ls-remote "${1-}" 2>/dev/null); do
+ case "$is_hash,$i" in
+ y,*) is_hash=n ;;
+ n,*^{}) is_hash=y ;;
+ n,refs/tags/*) is_hash=y; echo "${i#refs/tags/}" ;;
+ n,*) is_hash=y; echo "$i" ;;
+ esac
+ done
+}
+
+# __git_refs accepts 0, 1 (to pass to __gitdir), or 2 arguments
+# presence of 2nd argument means use the guess heuristic employed
+# by checkout for tracking branches
+__git_refs ()
+{
+ local i is_hash=y dir="$(__gitdir "${1-}")" track="${2-}"
+ local format refs
+ if [ -d "$dir" ]; then
+ case "$cur" in
+ refs|refs/*)
+ format="refname"
+ refs="${cur%/*}"
+ track=""
+ ;;
+ *)
+ for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do
+ if [ -e "$dir/$i" ]; then echo $i; fi
+ done
+ format="refname:short"
+ refs="refs/tags refs/heads refs/remotes"
+ ;;
+ esac
+ git --git-dir="$dir" for-each-ref --format="%($format)" \
+ $refs
+ if [ -n "$track" ]; then
+ # employ the heuristic used by git checkout
+ # Try to find a remote branch that matches the completion word
+ # but only output if the branch name is unique
+ local ref entry
+ git --git-dir="$dir" for-each-ref --shell --format="ref=%(refname:short)" \
+ "refs/remotes/" | \
+ while read entry; do
+ eval "$entry"
+ ref="${ref#*/}"
+ if [[ "$ref" == "$cur"* ]]; then
+ echo "$ref"
+ fi
+ done | uniq -u
+ fi
+ return
+ fi
+ for i in $(git ls-remote "$dir" 2>/dev/null); do
+ case "$is_hash,$i" in
+ y,*) is_hash=n ;;
+ n,*^{}) is_hash=y ;;
+ n,refs/tags/*) is_hash=y; echo "${i#refs/tags/}" ;;
+ n,refs/heads/*) is_hash=y; echo "${i#refs/heads/}" ;;
+ n,refs/remotes/*) is_hash=y; echo "${i#refs/remotes/}" ;;
+ n,*) is_hash=y; echo "$i" ;;
+ esac
+ done
+}
+
+# __git_refs2 requires 1 argument (to pass to __git_refs)
+__git_refs2 ()
+{
+ local i
+ for i in $(__git_refs "$1"); do
+ echo "$i:$i"
+ done
+}
+
+# __git_refs_remotes requires 1 argument (to pass to ls-remote)
+__git_refs_remotes ()
+{
+ local cmd i is_hash=y
+ for i in $(git ls-remote "$1" 2>/dev/null); do
+ case "$is_hash,$i" in
+ n,refs/heads/*)
+ is_hash=y
+ echo "$i:refs/remotes/$1/${i#refs/heads/}"
+ ;;
+ y,*) is_hash=n ;;
+ n,*^{}) is_hash=y ;;
+ n,refs/tags/*) is_hash=y;;
+ n,*) is_hash=y; ;;
+ esac
+ done
+}
+
+__git_remotes ()
+{
+ local i ngoff IFS=$'\n' d="$(__gitdir)"
+ __git_shopt -q nullglob || ngoff=1
+ __git_shopt -s nullglob
+ for i in "$d/remotes"/*; do
+ echo ${i#$d/remotes/}
+ done
+ [ "$ngoff" ] && __git_shopt -u nullglob
+ for i in $(git --git-dir="$d" config --get-regexp 'remote\..*\.url' 2>/dev/null); do
+ i="${i#remote.}"
+ echo "${i/.url*/}"
+ done
+}
+
+__git_list_merge_strategies ()
+{
+ git merge -s help 2>&1 |
+ sed -n -e '/[Aa]vailable strategies are: /,/^$/{
+ s/\.$//
+ s/.*://
+ s/^[ ]*//
+ s/[ ]*$//
+ p
+ }'
+}
+
+__git_merge_strategies=
+# 'git merge -s help' (and thus detection of the merge strategy
+# list) fails, unfortunately, if run outside of any git working
+# tree. __git_merge_strategies is set to the empty string in
+# that case, and the detection will be repeated the next time it
+# is needed.
+__git_compute_merge_strategies ()
+{
+ : ${__git_merge_strategies:=$(__git_list_merge_strategies)}
+}
+
+__git_complete_revlist_file ()
+{
+ local pfx ls ref cur_="$cur"
+ case "$cur_" in
+ *..?*:*)
+ return
+ ;;
+ ?*:*)
+ ref="${cur_%%:*}"
+ cur_="${cur_#*:}"
+ case "$cur_" in
+ ?*/*)
+ pfx="${cur_%/*}"
+ cur_="${cur_##*/}"
+ ls="$ref:$pfx"
+ pfx="$pfx/"
+ ;;
+ *)
+ ls="$ref"
+ ;;
+ esac
+
+ case "$COMP_WORDBREAKS" in
+ *:*) : great ;;
+ *) pfx="$ref:$pfx" ;;
+ esac
+
+ local IFS=$'\n'
+ COMPREPLY=($(compgen -P "$pfx" \
+ -W "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
+ | sed '/^100... blob /{
+ s,^.* ,,
+ s,$, ,
+ }
+ /^120000 blob /{
+ s,^.* ,,
+ s,$, ,
+ }
+ /^040000 tree /{
+ s,^.* ,,
+ s,$,/,
+ }
+ s/^.* //')" \
+ -- "$cur_"))
+ ;;
+ *...*)
+ pfx="${cur_%...*}..."
+ cur_="${cur_#*...}"
+ __gitcomp "$(__git_refs)" "$pfx" "$cur_"
+ ;;
+ *..*)
+ pfx="${cur_%..*}.."
+ cur_="${cur_#*..}"
+ __gitcomp "$(__git_refs)" "$pfx" "$cur_"
+ ;;
+ *)
+ __gitcomp "$(__git_refs)"
+ ;;
+ esac
+}
+
+
+__git_complete_file ()
+{
+ __git_complete_revlist_file
+}
+
+__git_complete_revlist ()
+{
+ __git_complete_revlist_file
+}
+
+__git_complete_remote_or_refspec ()
+{
+ local cur_="$cur" cmd="${words[1]}"
+ local i c=2 remote="" pfx="" lhs=1 no_complete_refspec=0
+ while [ $c -lt $cword ]; do
+ i="${words[c]}"
+ case "$i" in
+ --mirror) [ "$cmd" = "push" ] && no_complete_refspec=1 ;;
+ --all)
+ case "$cmd" in
+ push) no_complete_refspec=1 ;;
+ fetch)
+ COMPREPLY=()
+ return
+ ;;
+ *) ;;
+ esac
+ ;;
+ -*) ;;
+ *) remote="$i"; break ;;
+ esac
+ c=$((++c))
+ done
+ if [ -z "$remote" ]; then
+ __gitcomp "$(__git_remotes)"
+ return
+ fi
+ if [ $no_complete_refspec = 1 ]; then
+ COMPREPLY=()
+ return
+ fi
+ [ "$remote" = "." ] && remote=
+ case "$cur_" in
+ *:*)
+ case "$COMP_WORDBREAKS" in
+ *:*) : great ;;
+ *) pfx="${cur_%%:*}:" ;;
+ esac
+ cur_="${cur_#*:}"
+ lhs=0
+ ;;
+ +*)
+ pfx="+"
+ cur_="${cur_#+}"
+ ;;
+ esac
+ case "$cmd" in
+ fetch)
+ if [ $lhs = 1 ]; then
+ __gitcomp "$(__git_refs2 "$remote")" "$pfx" "$cur_"
+ else
+ __gitcomp "$(__git_refs)" "$pfx" "$cur_"
+ fi
+ ;;
+ pull)
+ if [ $lhs = 1 ]; then
+ __gitcomp "$(__git_refs "$remote")" "$pfx" "$cur_"
+ else
+ __gitcomp "$(__git_refs)" "$pfx" "$cur_"
+ fi
+ ;;
+ push)
+ if [ $lhs = 1 ]; then
+ __gitcomp "$(__git_refs)" "$pfx" "$cur_"
+ else
+ __gitcomp "$(__git_refs "$remote")" "$pfx" "$cur_"
+ fi
+ ;;
+ esac
+}
+
+__git_complete_strategy ()
+{
+ __git_compute_merge_strategies
+ case "$prev" in
+ -s|--strategy)
+ __gitcomp "$__git_merge_strategies"
+ return 0
+ esac
+ case "$cur" in
+ --strategy=*)
+ __gitcomp "$__git_merge_strategies" "" "${cur##--strategy=}"
+ return 0
+ ;;
+ esac
+ return 1
+}
+
+__git_list_all_commands ()
+{
+ local i IFS=" "$'\n'
+ for i in $(git help -a|egrep '^ [a-zA-Z0-9]')
+ do
+ case $i in
+ *--*) : helper pattern;;
+ *) echo $i;;
+ esac
+ done
+}
+
+__git_all_commands=
+__git_compute_all_commands ()
+{
+ : ${__git_all_commands:=$(__git_list_all_commands)}
+}
+
+__git_list_porcelain_commands ()
+{
+ local i IFS=" "$'\n'
+ __git_compute_all_commands
+ for i in "help" $__git_all_commands
+ do
+ case $i in
+ *--*) : helper pattern;;
+ applymbox) : ask gittus;;
+ applypatch) : ask gittus;;
+ archimport) : import;;
+ cat-file) : plumbing;;
+ check-attr) : plumbing;;
+ check-ref-format) : plumbing;;
+ checkout-index) : plumbing;;
+ commit-tree) : plumbing;;
+ count-objects) : infrequent;;
+ cvsexportcommit) : export;;
+ cvsimport) : import;;
+ cvsserver) : daemon;;
+ daemon) : daemon;;
+ diff-files) : plumbing;;
+ diff-index) : plumbing;;
+ diff-tree) : plumbing;;
+ fast-import) : import;;
+ fast-export) : export;;
+ fsck-objects) : plumbing;;
+ fetch-pack) : plumbing;;
+ fmt-merge-msg) : plumbing;;
+ for-each-ref) : plumbing;;
+ hash-object) : plumbing;;
+ http-*) : transport;;
+ index-pack) : plumbing;;
+ init-db) : deprecated;;
+ local-fetch) : plumbing;;
+ lost-found) : infrequent;;
+ ls-files) : plumbing;;
+ ls-remote) : plumbing;;
+ ls-tree) : plumbing;;
+ mailinfo) : plumbing;;
+ mailsplit) : plumbing;;
+ merge-*) : plumbing;;
+ mktree) : plumbing;;
+ mktag) : plumbing;;
+ pack-objects) : plumbing;;
+ pack-redundant) : plumbing;;
+ pack-refs) : plumbing;;
+ parse-remote) : plumbing;;
+ patch-id) : plumbing;;
+ peek-remote) : plumbing;;
+ prune) : plumbing;;
+ prune-packed) : plumbing;;
+ quiltimport) : import;;
+ read-tree) : plumbing;;
+ receive-pack) : plumbing;;
+ remote-*) : transport;;
+ repo-config) : deprecated;;
+ rerere) : plumbing;;
+ rev-list) : plumbing;;
+ rev-parse) : plumbing;;
+ runstatus) : plumbing;;
+ sh-setup) : internal;;
+ shell) : daemon;;
+ show-ref) : plumbing;;
+ send-pack) : plumbing;;
+ show-index) : plumbing;;
+ ssh-*) : transport;;
+ stripspace) : plumbing;;
+ symbolic-ref) : plumbing;;
+ tar-tree) : deprecated;;
+ unpack-file) : plumbing;;
+ unpack-objects) : plumbing;;
+ update-index) : plumbing;;
+ update-ref) : plumbing;;
+ update-server-info) : daemon;;
+ upload-archive) : plumbing;;
+ upload-pack) : plumbing;;
+ write-tree) : plumbing;;
+ var) : infrequent;;
+ verify-pack) : infrequent;;
+ verify-tag) : plumbing;;
+ *) echo $i;;
+ esac
+ done
+}
+
+__git_porcelain_commands=
+__git_compute_porcelain_commands ()
+{
+ __git_compute_all_commands
+ : ${__git_porcelain_commands:=$(__git_list_porcelain_commands)}
+}
+
+__git_pretty_aliases ()
+{
+ local i IFS=$'\n'
+ for i in $(git --git-dir="$(__gitdir)" config --get-regexp "pretty\..*" 2>/dev/null); do
+ case "$i" in
+ pretty.*)
+ i="${i#pretty.}"
+ echo "${i/ */}"
+ ;;
+ esac
+ done
+}
+
+__git_aliases ()
+{
+ local i IFS=$'\n'
+ for i in $(git --git-dir="$(__gitdir)" config --get-regexp "alias\..*" 2>/dev/null); do
+ case "$i" in
+ alias.*)
+ i="${i#alias.}"
+ echo "${i/ */}"
+ ;;
+ esac
+ done
+}
+
+# __git_aliased_command requires 1 argument
+__git_aliased_command ()
+{
+ local word cmdline=$(git --git-dir="$(__gitdir)" \
+ config --get "alias.$1")
+ for word in $cmdline; do
+ case "$word" in
+ \!gitk|gitk)
+ echo "gitk"
+ return
+ ;;
+ \!*) : shell command alias ;;
+ -*) : option ;;
+ *=*) : setting env ;;
+ git) : git itself ;;
+ *)
+ echo "$word"
+ return
+ esac
+ done
+}
+
+# __git_find_on_cmdline requires 1 argument
+__git_find_on_cmdline ()
+{
+ local word subcommand c=1
+ while [ $c -lt $cword ]; do
+ word="${words[c]}"
+ for subcommand in $1; do
+ if [ "$subcommand" = "$word" ]; then
+ echo "$subcommand"
+ return
+ fi
+ done
+ c=$((++c))
+ done
+}
+
+__git_has_doubledash ()
+{
+ local c=1
+ while [ $c -lt $cword ]; do
+ if [ "--" = "${words[c]}" ]; then
+ return 0
+ fi
+ c=$((++c))
+ done
+ return 1
+}
+
+__git_whitespacelist="nowarn warn error error-all fix"
+
+_git_am ()
+{
+ local dir="$(__gitdir)"
+ if [ -d "$dir"/rebase-apply ]; then
+ __gitcomp "--skip --continue --resolved --abort"
+ return
+ fi
+ case "$cur" in
+ --whitespace=*)
+ __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --3way --committer-date-is-author-date --ignore-date
+ --ignore-whitespace --ignore-space-change
+ --interactive --keep --no-utf8 --signoff --utf8
+ --whitespace= --scissors
+ "
+ return
+ esac
+ COMPREPLY=()
+}
+
+_git_apply ()
+{
+ case "$cur" in
+ --whitespace=*)
+ __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --stat --numstat --summary --check --index
+ --cached --index-info --reverse --reject --unidiff-zero
+ --apply --no-add --exclude=
+ --ignore-whitespace --ignore-space-change
+ --whitespace= --inaccurate-eof --verbose
+ "
+ return
+ esac
+ COMPREPLY=()
+}
+
+_git_add ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --interactive --refresh --patch --update --dry-run
+ --ignore-errors --intent-to-add
+ "
+ return
+ esac
+ COMPREPLY=()
+}
+
+_git_archive ()
+{
+ case "$cur" in
+ --format=*)
+ __gitcomp "$(git archive --list)" "" "${cur##--format=}"
+ return
+ ;;
+ --remote=*)
+ __gitcomp "$(__git_remotes)" "" "${cur##--remote=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --format= --list --verbose
+ --prefix= --remote= --exec=
+ "
+ return
+ ;;
+ esac
+ __git_complete_file
+}
+
+_git_bisect ()
+{
+ __git_has_doubledash && return
+
+ local subcommands="start bad good skip reset visualize replay log run"
+ local subcommand="$(__git_find_on_cmdline "$subcommands")"
+ if [ -z "$subcommand" ]; then
+ if [ -f "$(__gitdir)"/BISECT_START ]; then
+ __gitcomp "$subcommands"
+ else
+ __gitcomp "replay start"
+ fi
+ return
+ fi
+
+ case "$subcommand" in
+ bad|good|reset|skip|start)
+ __gitcomp "$(__git_refs)"
+ ;;
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+}
+
+_git_branch ()
+{
+ local i c=1 only_local_ref="n" has_r="n"
+
+ while [ $c -lt $cword ]; do
+ i="${words[c]}"
+ case "$i" in
+ -d|-m) only_local_ref="y" ;;
+ -r) has_r="y" ;;
+ esac
+ c=$((++c))
+ done
+
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --color --no-color --verbose --abbrev= --no-abbrev
+ --track --no-track --contains --merged --no-merged
+ --set-upstream
+ "
+ ;;
+ *)
+ if [ $only_local_ref = "y" -a $has_r = "n" ]; then
+ __gitcomp "$(__git_heads)"
+ else
+ __gitcomp "$(__git_refs)"
+ fi
+ ;;
+ esac
+}
+
+_git_bundle ()
+{
+ local cmd="${words[2]}"
+ case "$cword" in
+ 2)
+ __gitcomp "create list-heads verify unbundle"
+ ;;
+ 3)
+ # looking for a file
+ ;;
+ *)
+ case "$cmd" in
+ create)
+ __git_complete_revlist
+ ;;
+ esac
+ ;;
+ esac
+}
+
+_git_checkout ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --conflict=*)
+ __gitcomp "diff3 merge" "" "${cur##--conflict=}"
+ ;;
+ --*)
+ __gitcomp "
+ --quiet --ours --theirs --track --no-track --merge
+ --conflict= --orphan --patch
+ "
+ ;;
+ *)
+ # check if --track, --no-track, or --no-guess was specified
+ # if so, disable DWIM mode
+ local flags="--track --no-track --no-guess" track=1
+ if [ -n "$(__git_find_on_cmdline "$flags")" ]; then
+ track=''
+ fi
+ __gitcomp "$(__git_refs '' $track)"
+ ;;
+ esac
+}
+
+_git_cherry ()
+{
+ __gitcomp "$(__git_refs)"
+}
+
+_git_cherry_pick ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "--edit --no-commit"
+ ;;
+ *)
+ __gitcomp "$(__git_refs)"
+ ;;
+ esac
+}
+
+_git_clean ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "--dry-run --quiet"
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_clone ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --local
+ --no-hardlinks
+ --shared
+ --reference
+ --quiet
+ --no-checkout
+ --bare
+ --mirror
+ --origin
+ --upload-pack
+ --template=
+ --depth
+ "
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_commit ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --cleanup=*)
+ __gitcomp "default strip verbatim whitespace
+ " "" "${cur##--cleanup=}"
+ return
+ ;;
+ --reuse-message=*|--reedit-message=*|\
+ --fixup=*|--squash=*)
+ __gitcomp "$(__git_refs)" "" "${cur#*=}"
+ return
+ ;;
+ --untracked-files=*)
+ __gitcomp "all no normal" "" "${cur##--untracked-files=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --all --author= --signoff --verify --no-verify
+ --edit --amend --include --only --interactive
+ --dry-run --reuse-message= --reedit-message=
+ --reset-author --file= --message= --template=
+ --cleanup= --untracked-files --untracked-files=
+ --verbose --quiet --fixup= --squash=
+ "
+ return
+ esac
+ COMPREPLY=()
+}
+
+_git_describe ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --all --tags --contains --abbrev= --candidates=
+ --exact-match --debug --long --match --always
+ "
+ return
+ esac
+ __gitcomp "$(__git_refs)"
+}
+
+__git_diff_common_options="--stat --numstat --shortstat --summary
+ --patch-with-stat --name-only --name-status --color
+ --no-color --color-words --no-renames --check
+ --full-index --binary --abbrev --diff-filter=
+ --find-copies-harder
+ --text --ignore-space-at-eol --ignore-space-change
+ --ignore-all-space --exit-code --quiet --ext-diff
+ --no-ext-diff
+ --no-prefix --src-prefix= --dst-prefix=
+ --inter-hunk-context=
+ --patience
+ --raw
+ --dirstat --dirstat= --dirstat-by-file
+ --dirstat-by-file= --cumulative
+"
+
+_git_diff ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex
+ --base --ours --theirs --no-index
+ $__git_diff_common_options
+ "
+ return
+ ;;
+ esac
+ __git_complete_revlist_file
+}
+
+__git_mergetools_common="diffuse ecmerge emerge kdiff3 meld opendiff
+ tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3
+"
+
+_git_difftool ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --tool=*)
+ __gitcomp "$__git_mergetools_common kompare" "" "${cur##--tool=}"
+ return
+ ;;
+ --*)
+ __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex
+ --base --ours --theirs
+ --no-renames --diff-filter= --find-copies-harder
+ --relative --ignore-submodules
+ --tool="
+ return
+ ;;
+ esac
+ __git_complete_file
+}
+
+__git_fetch_options="
+ --quiet --verbose --append --upload-pack --force --keep --depth=
+ --tags --no-tags --all --prune --dry-run
+"
+
+_git_fetch ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "$__git_fetch_options"
+ return
+ ;;
+ esac
+ __git_complete_remote_or_refspec
+}
+
+_git_format_patch ()
+{
+ case "$cur" in
+ --thread=*)
+ __gitcomp "
+ deep shallow
+ " "" "${cur##--thread=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --stdout --attach --no-attach --thread --thread=
+ --output-directory
+ --numbered --start-number
+ --numbered-files
+ --keep-subject
+ --signoff --signature --no-signature
+ --in-reply-to= --cc=
+ --full-index --binary
+ --not --all
+ --cover-letter
+ --no-prefix --src-prefix= --dst-prefix=
+ --inline --suffix= --ignore-if-in-upstream
+ --subject-prefix=
+ "
+ return
+ ;;
+ esac
+ __git_complete_revlist
+}
+
+_git_fsck ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --tags --root --unreachable --cache --no-reflogs --full
+ --strict --verbose --lost-found
+ "
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_gc ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "--prune --aggressive"
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_gitk ()
+{
+ _gitk
+}
+
+__git_match_ctag() {
+ awk "/^${1////\\/}/ { print \$1 }" "$2"
+}
+
+_git_grep ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --cached
+ --text --ignore-case --word-regexp --invert-match
+ --full-name --line-number
+ --extended-regexp --basic-regexp --fixed-strings
+ --perl-regexp
+ --files-with-matches --name-only
+ --files-without-match
+ --max-depth
+ --count
+ --and --or --not --all-match
+ "
+ return
+ ;;
+ esac
+
+ case "$cword,$prev" in
+ 2,*|*,-*)
+ if test -r tags; then
+ __gitcomp "$(__git_match_ctag "$cur" tags)"
+ return
+ fi
+ ;;
+ esac
+
+ __gitcomp "$(__git_refs)"
+}
+
+_git_help ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "--all --info --man --web"
+ return
+ ;;
+ esac
+ __git_compute_all_commands
+ __gitcomp "$__git_all_commands $(__git_aliases)
+ attributes cli core-tutorial cvs-migration
+ diffcore gitk glossary hooks ignore modules
+ namespaces repository-layout tutorial tutorial-2
+ workflows
+ "
+}
+
+_git_init ()
+{
+ case "$cur" in
+ --shared=*)
+ __gitcomp "
+ false true umask group all world everybody
+ " "" "${cur##--shared=}"
+ return
+ ;;
+ --*)
+ __gitcomp "--quiet --bare --template= --shared --shared="
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_ls_files ()
+{
+ __git_has_doubledash && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "--cached --deleted --modified --others --ignored
+ --stage --directory --no-empty-directory --unmerged
+ --killed --exclude= --exclude-from=
+ --exclude-per-directory= --exclude-standard
+ --error-unmatch --with-tree= --full-name
+ --abbrev --ignored --exclude-per-directory
+ "
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_ls_remote ()
+{
+ __gitcomp "$(__git_remotes)"
+}
+
+_git_ls_tree ()
+{
+ __git_complete_file
+}
+
+# Options that go well for log, shortlog and gitk
+__git_log_common_options="
+ --not --all
+ --branches --tags --remotes
+ --first-parent --merges --no-merges
+ --max-count=
+ --max-age= --since= --after=
+ --min-age= --until= --before=
+ --min-parents= --max-parents=
+ --no-min-parents --no-max-parents
+"
+# Options that go well for log and gitk (not shortlog)
+__git_log_gitk_options="
+ --dense --sparse --full-history
+ --simplify-merges --simplify-by-decoration
+ --left-right --notes --no-notes
+"
+# Options that go well for log and shortlog (not gitk)
+__git_log_shortlog_options="
+ --author= --committer= --grep=
+ --all-match
+"
+
+__git_log_pretty_formats="oneline short medium full fuller email raw format:"
+__git_log_date_formats="relative iso8601 rfc2822 short local default raw"
+
+_git_log ()
+{
+ __git_has_doubledash && return
+
+ local g="$(git rev-parse --git-dir 2>/dev/null)"
+ local merge=""
+ if [ -f "$g/MERGE_HEAD" ]; then
+ merge="--merge"
+ fi
+ case "$cur" in
+ --pretty=*|--format=*)
+ __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
+ " "" "${cur#*=}"
+ return
+ ;;
+ --date=*)
+ __gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
+ return
+ ;;
+ --decorate=*)
+ __gitcomp "long short" "" "${cur##--decorate=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ $__git_log_common_options
+ $__git_log_shortlog_options
+ $__git_log_gitk_options
+ --root --topo-order --date-order --reverse
+ --follow --full-diff
+ --abbrev-commit --abbrev=
+ --relative-date --date=
+ --pretty= --format= --oneline
+ --cherry-pick
+ --graph
+ --decorate --decorate=
+ --walk-reflogs
+ --parents --children
+ $merge
+ $__git_diff_common_options
+ --pickaxe-all --pickaxe-regex
+ "
+ return
+ ;;
+ esac
+ __git_complete_revlist
+}
+
+__git_merge_options="
+ --no-commit --no-stat --log --no-log --squash --strategy
+ --commit --stat --no-squash --ff --no-ff --ff-only
+"
+
+_git_merge ()
+{
+ __git_complete_strategy && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "$__git_merge_options"
+ return
+ esac
+ __gitcomp "$(__git_refs)"
+}
+
+_git_mergetool ()
+{
+ case "$cur" in
+ --tool=*)
+ __gitcomp "$__git_mergetools_common tortoisemerge" "" "${cur##--tool=}"
+ return
+ ;;
+ --*)
+ __gitcomp "--tool="
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_merge_base ()
+{
+ __gitcomp "$(__git_refs)"
+}
+
+_git_mv ()
+{
+ case "$cur" in
+ --*)
+ __gitcomp "--dry-run"
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_name_rev ()
+{
+ __gitcomp "--tags --all --stdin"
+}
+
+_git_notes ()
+{
+ local subcommands='add append copy edit list prune remove show'
+ local subcommand="$(__git_find_on_cmdline "$subcommands")"
+
+ case "$subcommand,$cur" in
+ ,--*)
+ __gitcomp '--ref'
+ ;;
+ ,*)
+ case "${words[cword-1]}" in
+ --ref)
+ __gitcomp "$(__git_refs)"
+ ;;
+ *)
+ __gitcomp "$subcommands --ref"
+ ;;
+ esac
+ ;;
+ add,--reuse-message=*|append,--reuse-message=*|\
+ add,--reedit-message=*|append,--reedit-message=*)
+ __gitcomp "$(__git_refs)" "" "${cur#*=}"
+ ;;
+ add,--*|append,--*)
+ __gitcomp '--file= --message= --reedit-message=
+ --reuse-message='
+ ;;
+ copy,--*)
+ __gitcomp '--stdin'
+ ;;
+ prune,--*)
+ __gitcomp '--dry-run --verbose'
+ ;;
+ prune,*)
+ ;;
+ *)
+ case "${words[cword-1]}" in
+ -m|-F)
+ ;;
+ *)
+ __gitcomp "$(__git_refs)"
+ ;;
+ esac
+ ;;
+ esac
+}
+
+_git_pull ()
+{
+ __git_complete_strategy && return
+
+ case "$cur" in
+ --*)
+ __gitcomp "
+ --rebase --no-rebase
+ $__git_merge_options
+ $__git_fetch_options
+ "
+ return
+ ;;
+ esac
+ __git_complete_remote_or_refspec
+}
+
+_git_push ()
+{
+ case "$prev" in
+ --repo)
+ __gitcomp "$(__git_remotes)"
+ return
+ esac
+ case "$cur" in
+ --repo=*)
+ __gitcomp "$(__git_remotes)" "" "${cur##--repo=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --all --mirror --tags --dry-run --force --verbose
+ --receive-pack= --repo= --set-upstream
+ "
+ return
+ ;;
+ esac
+ __git_complete_remote_or_refspec
+}
+
+_git_rebase ()
+{
+ local dir="$(__gitdir)"
+ if [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then
+ __gitcomp "--continue --skip --abort"
+ return
+ fi
+ __git_complete_strategy && return
+ case "$cur" in
+ --whitespace=*)
+ __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
+ return
+ ;;
+ --*)
+ __gitcomp "
+ --onto --merge --strategy --interactive
+ --preserve-merges --stat --no-stat
+ --committer-date-is-author-date --ignore-date
+ --ignore-whitespace --whitespace=
+ --autosquash
+ "
+
+ return
+ esac
+ __gitcomp "$(__git_refs)"
+}
+
+_git_reflog ()
+{
+ local subcommands="show delete expire"
+ local subcommand="$(__git_find_on_cmdline "$subcommands")"
+
+ if [ -z "$subcommand" ]; then
+ __gitcomp "$subcommands"
+ else
+ __gitcomp "$(__git_refs)"
+ fi
+}
+
+__git_send_email_confirm_options="always never auto cc compose"
+__git_send_email_suppresscc_options="author self cc bodycc sob cccmd body all"
+
+_git_send_email ()
+{
+ case "$cur" in
+ --confirm=*)
+ __gitcomp "
+ $__git_send_email_confirm_options
+ " "" "${cur##--confirm=}"
+ return
+ ;;
+ --suppress-cc=*)
+ __gitcomp "
+ $__git_send_email_suppresscc_options
+ " "" "${cur##--suppress-cc=}"
+
+ return
+ ;;
+ --smtp-encryption=*)
+ __gitcomp "ssl tls" "" "${cur##--smtp-encryption=}"
+ return
+ ;;
+ --*)
+ __gitcomp "--annotate --bcc --cc --cc-cmd --chain-reply-to
+ --compose --confirm= --dry-run --envelope-sender
+ --from --identity
+ --in-reply-to --no-chain-reply-to --no-signed-off-by-cc
+ --no-suppress-from --no-thread --quiet
+ --signed-off-by-cc --smtp-pass --smtp-server
+ --smtp-server-port --smtp-encryption= --smtp-user
+ --subject --suppress-cc= --suppress-from --thread --to
+ --validate --no-validate"
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
+_git_stage ()
+{
+ _git_add
+}
+
+__git_config_get_set_variables ()
+{
+ local prevword word config_file= c=$cword
+ while [ $c -gt 1 ]; do
+ word="${words[c]}"
+ case "$word" in
+ --global|--system|--file=*)
+ config_file="$word"
+ break
+ ;;
+ -f|--file)
+ config_file="$word $prevword"
+ break
+ ;;
+ esac
+ prevword=$word
+ c=$((--c))
+ done
+
+ git --git-dir="$(__gitdir)" config $config_file --list 2>/dev/null |
+ while read line
+ do
+ case "$line" in
+ *.*=*)
+ echo "${line/=*/}"
+ ;;
+ esac
+ done
+}
+
+_git_config ()
+{
+ case "$prev" in
+ branch.*.remote)
+ __gitcomp "$(__git_remotes)"
+ return
+ ;;
+ branch.*.merge)
+ __gitcomp "$(__git_refs)"
+ return
+ ;;
+ remote.*.fetch)
+ local remote="${prev#remote.}"
+ remote="${remote%.fetch}"
+ __gitcomp "$(__git_refs_remotes "$remote")"
+ return
+ ;;
+ remote.*.push)
+ local remote="${prev#remote.}"
+ remote="${remote%.push}"
+ __gitcomp "$(git --git-dir="$(__gitdir)" \
+ for-each-ref --format='%(refname):%(refname)' \
+ refs/heads)"
+ return
+ ;;
+ pull.twohead|pull.octopus)
+ __git_compute_merge_strategies
+ __gitcomp "$__git_merge_strategies"
+