{"thread":{"id":"46824","subject":"'--shallow-since' option is not available for git-pull in Git version 2.14.1","startedAt":"2017-09-25T07:31:23Z","lastAt":"2017-09-26T05:15:45Z","messageCount":2,"participants":["Sanggyu Nam","Kevin Daudt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"328794","messageId":"F3F7A768-C844-4D77-9403-53AC3F506080@gmail.com","threadId":"46824","inReplyTo":null,"subject":"'--shallow-since' option is not available for git-pull in Git version 2.14.1","fromName":"Sanggyu Nam","fromEmail":"pokeplus@gmail.com","sentAt":"2017-09-25T07:31:10Z","receivedAt":"2017-09-25T07:31:23Z","isPatch":false,"sender":{"key":"pokeplus@gmail.com","avatar":null},"body":"I’ve found that some subcommands such as git-clone, git-fetch, and git-pull support an option named ‘--shallow-since’, as of Git version 2.11. This option is documented in the man page of each subcommand. In Git 2.14.1, I’ve checked that the option is available for git-clone and git-fetch so that the history of a shallow repository is updated. However, running git-pull with this option shows an error as follows:\n\nerror: unknown option `shallow-since=2017-09-10T00:00:00+00:00'\n\nusage: git pull [<options>] [<repository> [<refspec>...]]\n...\n\nI found that this option is not available in Git 2.14.1 on macOS and Ubuntu 16.04.1. It seems the option handling of git-pull does not match with what’s described in the man page. Since ‘git pull’ is a shorthand for ‘git fetch’ followed by ‘git merge FETCH_HEAD’ in its default mode, we can run these two commands in this order as a workaround.\n\n\n"},{"id":"328928","messageId":"20170926051539.GA22514@alpha.vpn.ikke.info","threadId":"46824","inReplyTo":"F3F7A768-C844-4D77-9403-53AC3F506080@gmail.com","subject":"Re: '--shallow-since' option is not available for git-pull in Git version 2.14.1","fromName":"Kevin Daudt","fromEmail":"me@ikke.info","sentAt":"2017-09-26T05:15:39Z","receivedAt":"2017-09-26T05:15:45Z","isPatch":false,"sender":{"key":"me@ikke.info","avatar":"https://avatars.githubusercontent.com/u/135698?v=4"},"body":"On Mon, Sep 25, 2017 at 04:31:10PM +0900, Sanggyu Nam wrote:\n> I’ve found that some subcommands such as git-clone, git-fetch, and\n> git-pull support an option named ‘--shallow-since’, as of Git version\n> 2.11. This option is documented in the man page of each subcommand. In\n> Git 2.14.1, I’ve checked that the option is available for git-clone\n> and git-fetch so that the history of a shallow repository is updated.\n> However, running git-pull with this option shows an error as follows:\n> \n> error: unknown option `shallow-since=2017-09-10T00:00:00+00:00'\n> \n> usage: git pull [<options>] [<repository> [<refspec>...]]\n> ...\n> \n> I found that this option is not available in Git 2.14.1 on macOS and\n> Ubuntu 16.04.1. It seems the option handling of git-pull does not\n> match with what’s described in the man page. Since ‘git pull’ is a\n> shorthand for ‘git fetch’ followed by ‘git merge FETCH_HEAD’ in its\n> default mode, we can run these two commands in this order as a\n> workaround.\n> \n> \n\nThis does not only count for --shallow-since, but also --deepen\nand --shallow-exclude.\n"}]}