git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-pull.txt: Add picture to --rebase option

From
jari.aalto@cante.net <jari.aalto@cante.net>
Date
Dec 3, 2010, 08:41 UTC
Message-ID
<1291365669-10439-1-git-send-email-jari.aalto@cante.net>
From: Jari Aalto <jari.aalto@cante.net>
Illustrate what are the effects of the the option.
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 Documentation/git-pull.txt |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt
index e47361f..25eb6de 100644
--- a/Documentation/git-pull.txt
+++ b/Documentation/git-pull.txt
@@ -106,6 +106,18 @@ This is a potentially _dangerous_ mode of operation.
 It rewrites history, which does not bode well when you
 published that history already.  Do *not* use this option
 unless you have read linkgit:git-rebase[1] carefully.
++
+The effects of this option are:
+------------
+    [initial]
+    o---o---o---A--B   Your work in commit A and B
+
+    [git pull --rebase]
+    o---o---o---*---*--A--B
+                |   |
+                New updates merged in. Your work is rebased
+                on top of them.
+------------
 
 --no-rebase::
 	Override earlier --rebase.
-- 
1.7.2.3
Next: Jakub Narebski
Message 1 of 3 in “git-pull.txt: Add picture to --rebase option”
  1. git-pull.txt: Add picture to --rebase optionjari.aalto@cante.net, Dec 3, 2010
  2. Jakub NarebskiDec 3, 2010
  3. Junio C HamanoDec 3, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.