rebase: use the new git-rebase--preserve-merges.sh

Create a new type of rebase, "preserve-merges", used when rebase is
called with -p.

Before that, the type for preserve-merges was "interactive", and some
places of this script compared $type to "interactive". Instead, the code
now checks if $interactive_rebase is empty or not, as it is set to
"explicit" when calling an interactive rebase (and, possibly, one of its
submodes), and "implied" when calling one of its
submodes (eg. preserve-merges) *without* interactive rebase.

It also detects the presence of the directory "$merge_dir"/rewritten
left by the preserve-merges script when calling rebase --continue,
--skip, etc., and, if it exists, sets the rebase mode to
preserve-merges. In this case, interactive_rebase is set to "explicit",
as "implied" would break some tests.

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
1 file changed
tree: 585532062b4a743babe1ead147221653af6c347c
  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. perl/
  14. po/
  15. ppc/
  16. refs/
  17. sha1dc/
  18. t/
  19. templates/
  20. vcs-svn/
  21. xdiff/
  22. .clang-format
  23. .gitattributes
  24. .gitignore
  25. .gitmodules
  26. .mailmap
  27. .travis.yml
  28. .tsan-suppressions
  29. abspath.c
  30. aclocal.m4
  31. advice.c
  32. advice.h
  33. alias.c
  34. alloc.c
  35. apply.c
  36. apply.h
  37. archive-tar.c
  38. archive-zip.c
  39. archive.c
  40. archive.h
  41. argv-array.c
  42. argv-array.h
  43. attr.c
  44. attr.h
  45. base85.c
  46. bisect.c
  47. bisect.h
  48. blame.c
  49. blame.h
  50. blob.c
  51. blob.h
  52. branch.c
  53. branch.h
  54. builtin.h
  55. bulk-checkin.c
  56. bulk-checkin.h
  57. bundle.c
  58. bundle.h
  59. cache-tree.c
  60. cache-tree.h
  61. cache.h
  62. chdir-notify.c
  63. chdir-notify.h
  64. check-builtins.sh
  65. check-racy.c
  66. check_bindir
  67. checkout.c
  68. checkout.h
  69. color.c
  70. color.h
  71. column.c
  72. column.h
  73. combine-diff.c
  74. command-list.txt
  75. commit-slab.h
  76. commit.c
  77. commit.h
  78. common-main.c
  79. config.c
  80. config.h
  81. config.mak.in
  82. config.mak.uname
  83. configure.ac
  84. connect.c
  85. connect.h
  86. connected.c
  87. connected.h
  88. convert.c
  89. convert.h
  90. copy.c
  91. COPYING
  92. credential-cache--daemon.c
  93. credential-cache.c
  94. credential-store.c
  95. credential.c
  96. credential.h
  97. csum-file.c
  98. csum-file.h
  99. ctype.c
  100. daemon.c
  101. date.c
  102. decorate.c
  103. decorate.h
  104. delta.h
  105. diff-delta.c
  106. diff-lib.c
  107. diff-no-index.c
  108. diff.c
  109. diff.h
  110. diffcore-break.c
  111. diffcore-delta.c
  112. diffcore-order.c
  113. diffcore-pickaxe.c
  114. diffcore-rename.c
  115. diffcore.h
  116. dir-iterator.c
  117. dir-iterator.h
  118. dir.c
  119. dir.h
  120. editor.c
  121. entry.c
  122. environment.c
  123. exec-cmd.c
  124. exec-cmd.h
  125. fast-import.c
  126. fetch-object.c
  127. fetch-object.h
  128. fetch-pack.c
  129. fetch-pack.h
  130. fmt-merge-msg.h
  131. fsck.c
  132. fsck.h
  133. fsmonitor.c
  134. fsmonitor.h
  135. generate-cmdlist.sh
  136. gettext.c
  137. gettext.h
  138. git-add--interactive.perl
  139. git-archimport.perl
  140. git-bisect.sh
  141. git-compat-util.h
  142. git-cvsexportcommit.perl
  143. git-cvsimport.perl
  144. git-cvsserver.perl
  145. git-difftool--helper.sh
  146. git-filter-branch.sh
  147. git-instaweb.sh
  148. git-merge-octopus.sh
  149. git-merge-one-file.sh
  150. git-merge-resolve.sh
  151. git-mergetool--lib.sh
  152. git-mergetool.sh
  153. git-p4.py
  154. git-parse-remote.sh
  155. git-quiltimport.sh
  156. git-rebase--am.sh
  157. git-rebase--interactive.sh
  158. git-rebase--merge.sh
  159. git-rebase--preserve-merges.sh
  160. git-rebase.sh
  161. git-remote-testgit.sh
  162. git-request-pull.sh
  163. git-send-email.perl
  164. git-sh-i18n.sh
  165. git-sh-setup.sh
  166. git-stash.sh
  167. git-submodule.sh
  168. git-svn.perl
  169. GIT-VERSION-GEN
  170. git-web--browse.sh
  171. git.c
  172. git.rc
  173. gpg-interface.c
  174. gpg-interface.h
  175. graph.c
  176. graph.h
  177. grep.c
  178. grep.h
  179. hash.h
  180. hashmap.c
  181. hashmap.h
  182. help.c
  183. help.h
  184. hex.c
  185. http-backend.c
  186. http-fetch.c
  187. http-push.c
  188. http-walker.c
  189. http.c
  190. http.h
  191. ident.c
  192. imap-send.c
  193. INSTALL
  194. iterator.h
  195. khash.h
  196. kwset.c
  197. kwset.h
  198. levenshtein.c
  199. levenshtein.h
  200. LGPL-2.1
  201. line-log.c
  202. line-log.h
  203. line-range.c
  204. line-range.h
  205. list-objects-filter-options.c
  206. list-objects-filter-options.h
  207. list-objects-filter.c
  208. list-objects-filter.h
  209. list-objects.c
  210. list-objects.h
  211. list.h
  212. ll-merge.c
  213. ll-merge.h
  214. lockfile.c
  215. lockfile.h
  216. log-tree.c
  217. log-tree.h
  218. mailinfo.c
  219. mailinfo.h
  220. mailmap.c
  221. mailmap.h
  222. Makefile
  223. match-trees.c
  224. mem-pool.c
  225. mem-pool.h
  226. merge-blobs.c
  227. merge-blobs.h
  228. merge-recursive.c
  229. merge-recursive.h
  230. merge.c
  231. mergesort.c
  232. mergesort.h
  233. name-hash.c
  234. notes-cache.c
  235. notes-cache.h
  236. notes-merge.c
  237. notes-merge.h
  238. notes-utils.c
  239. notes-utils.h
  240. notes.c
  241. notes.h
  242. object-store.h
  243. object.c
  244. object.h
  245. oidmap.c
  246. oidmap.h
  247. oidset.c
  248. oidset.h
  249. pack-bitmap-write.c
  250. pack-bitmap.c
  251. pack-bitmap.h
  252. pack-check.c
  253. pack-objects.c
  254. pack-objects.h
  255. pack-revindex.c
  256. pack-revindex.h
  257. pack-write.c
  258. pack.h
  259. packfile.c
  260. packfile.h
  261. pager.c
  262. parse-options-cb.c
  263. parse-options.c
  264. parse-options.h
  265. patch-delta.c
  266. patch-ids.c
  267. patch-ids.h
  268. path.c
  269. path.h
  270. pathspec.c
  271. pathspec.h
  272. pkt-line.c
  273. pkt-line.h
  274. preload-index.c
  275. pretty.c
  276. pretty.h
  277. prio-queue.c
  278. prio-queue.h
  279. progress.c
  280. progress.h
  281. prompt.c
  282. prompt.h
  283. protocol.c
  284. protocol.h
  285. quote.c
  286. quote.h
  287. reachable.c
  288. reachable.h
  289. read-cache.c
  290. README.md
  291. ref-filter.c
  292. ref-filter.h
  293. reflog-walk.c
  294. reflog-walk.h
  295. refs.c
  296. refs.h
  297. remote-curl.c
  298. remote-testsvn.c
  299. remote.c
  300. remote.h
  301. replace-object.c
  302. repository.c
  303. repository.h
  304. rerere.c
  305. rerere.h
  306. resolve-undo.c
  307. resolve-undo.h
  308. revision.c
  309. revision.h
  310. run-command.c
  311. run-command.h
  312. send-pack.c
  313. send-pack.h
  314. sequencer.c
  315. sequencer.h
  316. server-info.c
  317. setup.c
  318. sh-i18n--envsubst.c
  319. sha1-array.c
  320. sha1-array.h
  321. sha1-file.c
  322. sha1-lookup.c
  323. sha1-lookup.h
  324. sha1-name.c
  325. sha1dc_git.c
  326. sha1dc_git.h
  327. shallow.c
  328. shell.c
  329. shortlog.h
  330. show-index.c
  331. sideband.c
  332. sideband.h
  333. sigchain.c
  334. sigchain.h
  335. split-index.c
  336. split-index.h
  337. strbuf.c
  338. strbuf.h
  339. streaming.c
  340. streaming.h
  341. string-list.c
  342. string-list.h
  343. sub-process.c
  344. sub-process.h
  345. submodule-config.c
  346. submodule-config.h
  347. submodule.c
  348. submodule.h
  349. symlinks.c
  350. tag.c
  351. tag.h
  352. tar.h
  353. tempfile.c
  354. tempfile.h
  355. thread-utils.c
  356. thread-utils.h
  357. tmp-objdir.c
  358. tmp-objdir.h
  359. trace.c
  360. trace.h
  361. trailer.c
  362. trailer.h
  363. transport-helper.c
  364. transport-internal.h
  365. transport.c
  366. transport.h
  367. tree-diff.c
  368. tree-walk.c
  369. tree-walk.h
  370. tree.c
  371. tree.h
  372. unicode-width.h
  373. unimplemented.sh
  374. unix-socket.c
  375. unix-socket.h
  376. unpack-trees.c
  377. unpack-trees.h
  378. upload-pack.c
  379. url.c
  380. url.h
  381. urlmatch.c
  382. urlmatch.h
  383. usage.c
  384. userdiff.c
  385. userdiff.h
  386. utf8.c
  387. utf8.h
  388. varint.c
  389. varint.h
  390. version.c
  391. version.h
  392. versioncmp.c
  393. walker.c
  394. walker.h
  395. wildmatch.c
  396. wildmatch.h
  397. worktree.c
  398. worktree.h
  399. wrap-for-bin.sh
  400. wrapper.c
  401. write-or-die.c
  402. ws.c
  403. wt-status.c
  404. wt-status.h
  405. xdiff-interface.c
  406. xdiff-interface.h
  407. zlib.c
README.md

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-.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://public-inbox.org/git/, http://marc.info/?l=git and other archival sites.

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