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

Documented option "--deepen" is unknown to git-pull

From
天几 <muzimuzhi@gmail.com>
Date
Mar 8, 2020, 19:17 UTC
Message-ID
<CAEg0tHTMHD1+3QaSe3Z+ymRKvOkbHnVqv-Xp2xhOT56SoHTmwA@mail.gmail.com>
Option "--deepen" is documented in online doc of git-pull, Sec.
_Options related to fetching_, see
    https://git-scm.com/docs/git-pull#Documentation/git-pull.txt---deepenltdepthgt
But executing "git pull --deepen=100 origin master" returns
    error: unknown option `deepen'
More tests show option "--deepen" is known to git-fetch but not
git-pull, although the doc of git-pull says
    git pull runs git fetch with the given parameters and calls git
    merge to merge the retrieved branch heads into the current branch.
    https://git-scm.com/docs/git-pull#_description
which suggests that every valid option of "git fetch" would also valid
for "git pull".
Is this a documentation or an implementation problem? (I use git v2.25.1.)
muzimuzhi
Next: René Scharfe
Message 1 of 6 in “Documented option "--deepen" is unknown to git-pull”
  1. 天几Mar 8, 2020
  2. René ScharfeMar 9, 2020
  3. 2/1 pull: remove --update-head-ok from documentationRené Scharfe, Mar 28, 2020
  4. Taylor BlauMar 31, 2020
  5. René ScharfeMar 31, 2020
  6. 3/1 pull: pass documented fetch options onRené Scharfe, Mar 28, 2020

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.