aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
Commit message (Collapse)AuthorAgeFilesLines
* git: Add ability to PGP sign commitsChris Marchesi2018-08-161-0/+4
| | | | | | | | | | This adds the ability to sign commits by adding the SignKey field to CommitOptions. If present, the commit will be signed during the WorkTree.Commit call. The supplied SignKey must already be decrypted by the caller. Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
* add PlainOpen variant to find .git in parent dirsDaniel Martí2018-04-031-0/+11
| | | | | | | | | This is the git tool's behavior that people are used to; if one runs a git command in a repository's subdirectory, git still works. Fixes #765. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
* add LogOrder, LogOptions.Order, implement Order=LogOrderCommitterTime and ↵Saeed Rasooli2018-03-051-0/+15
| | | | | | Order=LogOrderBSF Signed-off-by: Saeed Rasooli <saeed.gnu@gmail.com>
* Support for clone without checkoutMichael Rykov2018-01-171-0/+2
|
* git: Worktree.Grep() support multiple patterns and pathspecsSunny2017-12-201-4/+4
| | | | Signed-off-by: Sunny <me@darkowlzz.space>
* git: worktree, add Grep() method for git grep (#686)Sunny2017-12-121-0/+38
| | | This change implemented grep on worktree with options to invert match and specify pathspec. Also, a commit hash or reference can be used to specify the worktree to search.
* git: worktree, add Clean() method for git cleanSunny2017-12-041-0/+5
| | | | | | | This change implement git clean with a `Dir` option. By default, clean removes only the untracked files in the working directory. If `Dir` option is set to true, untracked files under other directories are also cleaned.
* Support non-force fetchesNick Thomas2017-11-271-0/+6
|
* Create ListOptions and rename LSRemote to List.Sunny2017-10-041-0/+6
|
* Repository.Clone added Tags option, and set by default AllTags as git doesMáximo Cuadros2017-09-041-6/+18
|
* Merge pull request #573 from orirawlings/pushSidebandMáximo Cuadros2017-09-011-0/+3
|\ | | | | Add sideband support for push
| * Add sideband support for pushOri Rawlings2017-09-011-0/+3
| |
* | Worktree.Reset ignore untracked files on Merge modeMáximo Cuadros2017-09-011-4/+8
|/
* Submodule.Update, add Auth to SubmoduleUpdateOption, fixes #520Máximo Cuadros2017-07-281-0/+2
|
* Implement a NoTags mode for fetch that mimics git fetch --no-tagsNick Thomas2017-07-221-0/+2
|
* worktree: checkout, create branchMáximo Cuadros2017-07-181-1/+16
|
* remote: fetch, correct behaviour on tagsMáximo Cuadros2017-07-171-0/+15
|
* worktree: Commit, tests improvementsMáximo Cuadros2017-05-041-7/+6
|
* worktree: Commit method implementationMáximo Cuadros2017-05-041-1/+46
|
* worktree, reset implementation and status improvementsMáximo Cuadros2017-04-121-7/+21
|
* merge, Repository.LogMáximo Cuadros2017-04-111-0/+8
|\
| * Add Repository.Log() method (fix #298)Antonio Jesus Navarro Perez2017-04-111-0/+8
| | | | | | | | | | | | | | | | | | | | - CommitIter is now an interface - The old CommitIter implementation is now called StorerCommitIter - CommitWalker and CommitWalkerPost are now iterators (CommitPreIterator and CommitPostIterator). - Remove Commit.History() method. There are so many ways to iterate a commit history, depending of the use case. Now, instead of use the History() method, you must use CommitPreIterator or CommitPostIterator. - Move commitSorterer to references.go because is the only place that it is used, and it must not be used into another place. - Make References method private, it must only be used into blame logic. - Added a TODO into references method, where the sortCommits is used to remove it in a near future.
* | worktree, status implementation based on merkletrie and reset and checkout ↵Máximo Cuadros2017-04-111-0/+52
|/ | | | implementations
* project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-4/+4
| | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release.
* documentation and API improvementsMáximo Cuadros2017-02-211-30/+30
|
* submodule update implementationMáximo Cuadros2017-02-151-2/+27
|
* submodule init implementationMáximo Cuadros2017-02-121-0/+4
|
* config: RefSpec.Validate returning errors and doc (Fixes #232)Máximo Cuadros2017-01-311-6/+5
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-4/+4
|
* Repository.Progress moved as a field in *Options (#237)Máximo Cuadros2017-01-301-0/+13
|
* Fix typos in git docs (#230)Sergio Arbeo2017-01-301-8/+8
|
* transport: remove SetAuth, fixes #206 (#210)Anthony Weems2017-01-171-1/+7
| | | | | * remove SetAuth functions, implement at NewUploadPackSession/NewReceivePackSession level. * propagate transport.Auth from Fetch/Pull/Clone options to the transport API.
* remote: add Push (#178)Santiago M. Mola2016-12-191-0/+30
| | | | | | | | | | | | * remote: add Push. * add Push method to Remote. * add method Push to Repository. * examples: add push example. * requested changes * add tests, fixes
* remote: make Fetch atomic. (#185)Santiago M. Mola2016-12-161-7/+13
| | | | | | | * Remote now exposes only Fetch. No Connect, Disconnect, etc. * Repository uses a private fetch method in Remote for Clone/Pull. * getting capabilities, HEAD or other information from remote requires using the lower level client. * add Fetch method to Repository.
* transport: create Client interface (#132)Santiago M. Mola2016-11-231-2/+2
| | | | | | | | | | | | | | | * plumbing: move plumbing/client package to plumbing/transport. * transport: create Client interface. * A Client can instantiate any client transport service. * InstallProtocol installs a Client for a given protocol, instead of just a UploadPackService. * A Client can open a session for fetch-pack or send-pack for a specific Endpoint. * Adapt ssh and http clients to the new client interface. * updated doc
* new plumbing package (#118)Máximo Cuadros2016-11-081-6/+6
| | | * plumbing: now core was renamed to core, and formats and clients moved inside
* remote, fix fetch tagsMáximo Cuadros2016-10-271-1/+3
|
* clients/ssh: test fixMáximo Cuadros2016-08-241-1/+1
|
* options renamed and some text fixesMáximo Cuadros2016-08-221-9/+9
|
* Remote.Fetch multiple RefSpec supportMáximo Cuadros2016-08-221-24/+7
|
* Remote.Fetch base on RefSpec, improvement of the responsabilities separationMáximo Cuadros2016-08-191-11/+27
|
* Repository.Pull, PoCMáximo Cuadros2016-08-151-1/+51
|
* Repository.Clone and Remote.Fetch remote, local branches and client: correct ↵Máximo Cuadros2016-08-151-14/+25
| | | | header read
* Repository.Clone and Remote.Fetch tests and improvementsMáximo Cuadros2016-08-131-0/+14
|
* Repository and Remote API changesMáximo Cuadros2016-08-131-0/+20