completion: fix incorrect bash/zsh string equality check

In the basic `[`/`test` command, the string equality operator is a
single `=`. The `==` operator is only available in `[[`, which is a
bash-ism also supported by zsh.

This mix-up was causing the following completion error in zsh:
> __git_ls_files_helper:7: = not found

(That message refers to the extraneous symbol in `==` ← `=`).

This updates that comparison to use a single `=` inside the
basic `[ … ]` test conditional.

Although this fix is inconsistent with the other comparisons in this
file, which use `[[ … == … ]]`, and the two expressions are functionally
identical in this context, that approach was rejected due to a
preference for `[`.

Signed-off-by: Robert Estelle <robertestelle@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 file changed
tree: aeb8b6db6bec503b46f3282ad90a1844b84dda48
  1. .github/
  2. block-sha1/
  3. builtin/
  4. ci/
  5. compat/
  6. contrib/
  7. Documentation/
  8. ewah/
  9. git-gui/
  10. gitk-git/
  11. gitweb/
  12. mergetools/
  13. negotiator/
  14. perl/
  15. po/
  16. ppc/
  17. refs/
  18. sha1dc/
  19. sha256/
  20. t/
  21. templates/
  22. trace2/
  23. xdiff/
  24. .cirrus.yml
  25. .clang-format
  26. .editorconfig
  27. .gitattributes
  28. .gitignore
  29. .gitmodules
  30. .mailmap
  31. .travis.yml
  32. .tsan-suppressions
  33. abspath.c
  34. aclocal.m4
  35. add-interactive.c
  36. add-interactive.h
  37. add-patch.c
  38. advice.c
  39. advice.h
  40. alias.c
  41. alias.h
  42. alloc.c
  43. alloc.h
  44. apply.c
  45. apply.h
  46. archive-tar.c
  47. archive-zip.c
  48. archive.c
  49. archive.h
  50. attr.c
  51. attr.h
  52. banned.h
  53. base85.c
  54. bisect.c
  55. bisect.h
  56. blame.c
  57. blame.h
  58. blob.c
  59. blob.h
  60. bloom.c
  61. bloom.h
  62. branch.c
  63. branch.h
  64. builtin.h
  65. bulk-checkin.c
  66. bulk-checkin.h
  67. bundle.c
  68. bundle.h
  69. cache-tree.c
  70. cache-tree.h
  71. cache.h
  72. cbtree.c
  73. cbtree.h
  74. chdir-notify.c
  75. chdir-notify.h
  76. check-builtins.sh
  77. checkout.c
  78. checkout.h
  79. chunk-format.c
  80. chunk-format.h
  81. CODE_OF_CONDUCT.md
  82. color.c
  83. color.h
  84. column.c
  85. column.h
  86. combine-diff.c
  87. command-list.txt
  88. commit-graph.c
  89. commit-graph.h
  90. commit-reach.c
  91. commit-reach.h
  92. commit-slab-decl.h
  93. commit-slab-impl.h
  94. commit-slab.h
  95. commit.c
  96. commit.h
  97. common-main.c
  98. config.c
  99. config.h
  100. config.mak.dev
  101. config.mak.in
  102. config.mak.uname
  103. configure.ac
  104. connect.c
  105. connect.h
  106. connected.c
  107. connected.h
  108. convert.c
  109. convert.h
  110. copy.c
  111. COPYING
  112. credential.c
  113. credential.h
  114. csum-file.c
  115. csum-file.h
  116. ctype.c
  117. daemon.c
  118. date.c
  119. decorate.c
  120. decorate.h
  121. delta-islands.c
  122. delta-islands.h
  123. delta.h
  124. detect-compiler
  125. diff-delta.c
  126. diff-lib.c
  127. diff-merges.c
  128. diff-merges.h
  129. diff-no-index.c
  130. diff.c
  131. diff.h
  132. diffcore-break.c
  133. diffcore-delta.c
  134. diffcore-order.c
  135. diffcore-pickaxe.c
  136. diffcore-rename.c
  137. diffcore-rotate.c
  138. diffcore.h
  139. dir-iterator.c
  140. dir-iterator.h
  141. dir.c
  142. dir.h
  143. editor.c
  144. entry.c
  145. entry.h
  146. environment.c
  147. environment.h
  148. exec-cmd.c
  149. exec-cmd.h
  150. fetch-negotiator.c
  151. fetch-negotiator.h
  152. fetch-pack.c
  153. fetch-pack.h
  154. fmt-merge-msg.c
  155. fmt-merge-msg.h
  156. fsck.c
  157. fsck.h
  158. fsmonitor.c
  159. fsmonitor.h
  160. fuzz-commit-graph.c
  161. fuzz-pack-headers.c
  162. fuzz-pack-idx.c
  163. generate-cmdlist.sh
  164. generate-configlist.sh
  165. gettext.c
  166. gettext.h
  167. git-add--interactive.perl
  168. git-archimport.perl
  169. git-bisect.sh
  170. git-compat-util.h
  171. git-cvsexportcommit.perl
  172. git-cvsimport.perl
  173. git-cvsserver.perl
  174. git-difftool--helper.sh
  175. git-filter-branch.sh
  176. git-instaweb.sh
  177. git-merge-octopus.sh
  178. git-merge-one-file.sh
  179. git-merge-resolve.sh
  180. git-mergetool--lib.sh
  181. git-mergetool.sh
  182. git-p4.py
  183. git-quiltimport.sh
  184. git-rebase--preserve-merges.sh
  185. git-request-pull.sh
  186. git-send-email.perl
  187. git-sh-i18n.sh
  188. git-sh-setup.sh
  189. git-submodule.sh
  190. git-svn.perl
  191. GIT-VERSION-GEN
  192. git-web--browse.sh
  193. git.c
  194. git.rc
  195. gpg-interface.c
  196. gpg-interface.h
  197. graph.c
  198. graph.h
  199. grep.c
  200. grep.h
  201. hash-lookup.c
  202. hash-lookup.h
  203. hash.h
  204. hashmap.c
  205. hashmap.h
  206. help.c
  207. help.h
  208. hex.c
  209. http-backend.c
  210. http-fetch.c
  211. http-push.c
  212. http-walker.c
  213. http.c
  214. http.h
  215. ident.c
  216. imap-send.c
  217. INSTALL
  218. iterator.h
  219. json-writer.c
  220. json-writer.h
  221. khash.h
  222. kwset.c
  223. kwset.h
  224. levenshtein.c
  225. levenshtein.h
  226. LGPL-2.1
  227. line-log.c
  228. line-log.h
  229. line-range.c
  230. line-range.h
  231. linear-assignment.c
  232. linear-assignment.h
  233. list-objects-filter-options.c
  234. list-objects-filter-options.h
  235. list-objects-filter.c
  236. list-objects-filter.h
  237. list-objects.c
  238. list-objects.h
  239. list.h
  240. ll-merge.c
  241. ll-merge.h
  242. lockfile.c
  243. lockfile.h
  244. log-tree.c
  245. log-tree.h
  246. ls-refs.c
  247. ls-refs.h
  248. mailinfo.c
  249. mailinfo.h
  250. mailmap.c
  251. mailmap.h
  252. Makefile
  253. match-trees.c
  254. mem-pool.c
  255. mem-pool.h
  256. merge-blobs.c
  257. merge-blobs.h
  258. merge-ort-wrappers.c
  259. merge-ort-wrappers.h
  260. merge-ort.c
  261. merge-ort.h
  262. merge-recursive.c
  263. merge-recursive.h
  264. merge.c
  265. mergesort.c
  266. mergesort.h
  267. midx.c
  268. midx.h
  269. name-hash.c
  270. notes-cache.c
  271. notes-cache.h
  272. notes-merge.c
  273. notes-merge.h
  274. notes-utils.c
  275. notes-utils.h
  276. notes.c
  277. notes.h
  278. object-file.c
  279. object-name.c
  280. object-store.h
  281. object.c
  282. object.h
  283. oid-array.c
  284. oid-array.h
  285. oidmap.c
  286. oidmap.h
  287. oidset.c
  288. oidset.h
  289. oidtree.c
  290. oidtree.h
  291. pack-bitmap-write.c
  292. pack-bitmap.c
  293. pack-bitmap.h
  294. pack-check.c
  295. pack-objects.c
  296. pack-objects.h
  297. pack-revindex.c
  298. pack-revindex.h
  299. pack-write.c
  300. pack.h
  301. packfile.c
  302. packfile.h
  303. pager.c
  304. parallel-checkout.c
  305. parallel-checkout.h
  306. parse-options-cb.c
  307. parse-options.c
  308. parse-options.h
  309. patch-delta.c
  310. patch-ids.c
  311. patch-ids.h
  312. path.c
  313. path.h
  314. pathspec.c
  315. pathspec.h
  316. pkt-line.c
  317. pkt-line.h
  318. preload-index.c
  319. pretty.c
  320. pretty.h
  321. prio-queue.c
  322. prio-queue.h
  323. progress.c
  324. progress.h
  325. promisor-remote.c
  326. promisor-remote.h
  327. prompt.c
  328. prompt.h
  329. protocol-caps.c
  330. protocol-caps.h
  331. protocol.c
  332. protocol.h
  333. prune-packed.c
  334. prune-packed.h
  335. quote.c
  336. quote.h
  337. range-diff.c
  338. range-diff.h
  339. reachable.c
  340. reachable.h
  341. read-cache.c
  342. README.md
  343. rebase-interactive.c
  344. rebase-interactive.h
  345. rebase.c
  346. rebase.h
  347. ref-filter.c
  348. ref-filter.h
  349. reflog-walk.c
  350. reflog-walk.h
  351. refs.c
  352. refs.h
  353. refspec.c
  354. refspec.h
  355. remote-curl.c
  356. remote.c
  357. remote.h
  358. replace-object.c
  359. replace-object.h
  360. repo-settings.c
  361. repository.c
  362. repository.h
  363. rerere.c
  364. rerere.h
  365. reset.c
  366. reset.h
  367. resolve-undo.c
  368. resolve-undo.h
  369. revision.c
  370. revision.h
  371. run-command.c
  372. run-command.h
  373. SECURITY.md
  374. send-pack.c
  375. send-pack.h
  376. sequencer.c
  377. sequencer.h
  378. serve.c
  379. serve.h
  380. server-info.c
  381. setup.c
  382. sh-i18n--envsubst.c
  383. sha1dc_git.c
  384. sha1dc_git.h
  385. shallow.c
  386. shallow.h
  387. shell.c
  388. shortlog.h
  389. sideband.c
  390. sideband.h
  391. sigchain.c
  392. sigchain.h
  393. simple-ipc.h
  394. sparse-index.c
  395. sparse-index.h
  396. split-index.c
  397. split-index.h
  398. stable-qsort.c
  399. strbuf.c
  400. strbuf.h
  401. streaming.c
  402. streaming.h
  403. string-list.c
  404. string-list.h
  405. strmap.c
  406. strmap.h
  407. strvec.c
  408. strvec.h
  409. sub-process.c
  410. sub-process.h
  411. submodule-config.c
  412. submodule-config.h
  413. submodule.c
  414. submodule.h
  415. symlinks.c
  416. tag.c
  417. tag.h
  418. tar.h
  419. tempfile.c
  420. tempfile.h
  421. thread-utils.c
  422. thread-utils.h
  423. tmp-objdir.c
  424. tmp-objdir.h
  425. trace.c
  426. trace.h
  427. trace2.c
  428. trace2.h
  429. trailer.c
  430. trailer.h
  431. transport-helper.c
  432. transport-internal.h
  433. transport.c
  434. transport.h
  435. tree-diff.c
  436. tree-walk.c
  437. tree-walk.h
  438. tree.c
  439. tree.h
  440. unicode-width.h
  441. unimplemented.sh
  442. unix-socket.c
  443. unix-socket.h
  444. unix-stream-server.c
  445. unix-stream-server.h
  446. unpack-trees.c
  447. unpack-trees.h
  448. upload-pack.c
  449. upload-pack.h
  450. url.c
  451. url.h
  452. urlmatch.c
  453. urlmatch.h
  454. usage.c
  455. userdiff.c
  456. userdiff.h
  457. utf8.c
  458. utf8.h
  459. varint.c
  460. varint.h
  461. version.c
  462. version.h
  463. versioncmp.c
  464. walker.c
  465. walker.h
  466. wildmatch.c
  467. wildmatch.h
  468. worktree.c
  469. worktree.h
  470. wrap-for-bin.sh
  471. wrapper.c
  472. write-or-die.c
  473. ws.c
  474. wt-status.c
  475. wt-status.h
  476. xdiff-interface.c
  477. xdiff-interface.h
  478. zlib.c
README.md

Build status

Git - fast, scalable, distributed revision control system

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.

Git is an Open Source project covered by the GNU General Public License version 2 (some parts of it are under different licenses, compatible with the GPLv2). It was originally written by Linus Torvalds with help of a group of hackers around the net.

Please read the file INSTALL for installation instructions.

Many Git online resources are accessible from https://git-scm.com/ including full documentation and Git related tools.

See Documentation/gittutorial.txt to get started, then see Documentation/giteveryday.txt for a useful minimum set of commands, and Documentation/git-<commandname>.txt for documentation of each command. If git has been correctly installed, then the tutorial can also be read with man gittutorial or git help tutorial, and the documentation of each command with man git-<commandname> or git help <commandname>.

CVS users may also want to read Documentation/gitcvs-migration.txt (man gitcvs-migration or git help cvs-migration if git is installed).

The user discussion and development of Git take place on the Git mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to git@vger.kernel.org (read Documentation/SubmittingPatches for instructions on patch submission). To subscribe to the list, send an email with just “subscribe git” in the body to majordomo@vger.kernel.org. The mailing list archives are available at https://lore.kernel.org/git/, http://marc.info/?l=git and other archival sites.

Issues which are security relevant should be disclosed privately to the Git Security mailing list git-security@googlegroups.com.

The maintainer frequently sends the “What's cooking” reports that list the current status of various development topics to the mailing list. The discussion following them give a good reference for project status, development direction and remaining tasks.

The name “git” was given by Linus Torvalds when he wrote the very first version. He described the tool as “the stupid content tracker” and the name as (depending on your mood):

  • random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of “get” may or may not be relevant.
  • stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang.
  • “global information tracker”: you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room.
  • “goddamn idiotic truckload of sh*t”: when it breaks