Re: [PATCH] clone: add a --no-tags option to clone without tags
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Apr 25, 2017, 22:35 UTC
- Message-ID
- <20170425223533.GL28740@aiede.svl.corp.google.com>
- In-Reply-To
- <20170418191553.15464-1-avarab@gmail.com>
Hi,
Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
> Add a --no-tags option to "git clone" to clone without tags. Currently > there's no easy way to clone a repository and end up with just a > "master" branch via --single-branch, or track all branches and no > tags. Now --no-tags can be added to "git clone" with or without > --single-branch to clone a repository without tags.
Could --single-branch be made to imply --no-tags, like --depth implies --single-branch? After all, all I wanted is that one branch, not some tags.
Callers who really want the tags could still pass --tags to request that.
Just thinking out loud, Jonathan