src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.9k stars 541 forks source link

Support the 'rebase' config key for branches #1154

Closed yelirekim closed 5 years ago

yelirekim commented 5 years ago

We are using go-git in a command line client that provides some abstractions on top of git workspaces to help users manage their reviews. A key part of workflow management here is correctly pointing upstreams to local or remote branches, and causing pulls to issue rebases rather than merges.

The config value itself is a standard key and git itself will set/unset it for you sometimes during relatively normal usage.

This PR just adds support for the key.