Merge lp:~mattyw/codetree/git-branch into lp:codetree
Proposed by
Matthew Williams
Status: | Merged |
---|---|
Merged at revision: | 86 |
Proposed branch: | lp:~mattyw/codetree/git-branch |
Merge into: | lp:codetree |
Diff against target: |
135 lines (+75/-5) 3 files modified
README.md (+4/-0) codetree/handlers/git.py (+10/-4) tests/test_git_handler.py (+61/-1) |
To merge this branch: | bzr merge lp:~mattyw/codetree/git-branch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Kuhlman (community) | Approve | ||
Review via email: mp+316830@code.launchpad.net |
Commit message
Added support for specifying a branch=branch-name option when cloning. This is distinct from the revno option which clones master then checkouts the relevent branch. The branch option will only clone the specified branch
Description of the change
Added support for specifying a branch=branch-name option when cloning. This is distinct from the revno option which clones master then checkouts the relevent branch. The branch option will only clone the specified branch
To post a comment you must log in.
I'm assuming the use case is to minimize the size of what gets downloaded by codetree.
The distinction between clone master/checkout revno and clone a specific branch is only important when both doing a branch checkout and specifying a depth, without depth it is equivalent to just using revno. The '--single-branch' argument should be added when '-b' is added to achieve the smaller download without having to specify depth.
Please update README.md documenting the new options.