Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | worktree: Don't remove root directory when cleaning (#230) | hansmi | 2021-01-27 | 1 | -1/+1 |
| | | | | | | | When using a separate worktree directory while working on a bare repository, cleaning with CleanOptions{Dir: true} would also remove the root worktree directory if empty. Signed-off-by: Michael Hanselmann <public@hansmi.ch> | ||||
* | Add insecureSkipTLS and cabundle (#228) | Daishan Peng | 2021-01-27 | 1 | -5/+7 |
| | | | | | This PR add insecureSkipTLSVerify and cabundle to any remote http calls so that https repo with private CA signed can be used. This is the equivalent of https.sslVerify and GIT_SSL_CAINFO | ||||
* | Fix relative submodule resolution | Axel Christ | 2020-10-28 | 1 | -22/+0 |
| | | | | | | | | | | | | | | | | | With the current behavior, the config will always hold the resolved, absolute URL, leavin the user of go-git no choice to determine whether the original URL is relative or not. This changes to employ relative URL resolution only when resolving a submodule to a repository to keep the correct configuration 'unresolved' and intact. Change relative resolution using `filepath.Dir` to `path.Join` while parsing both the 'root' and the relative URL with `net/url.URL`. Adapt test to verify the new behavior. Re-fixes #184 (see comments). | ||||
* | git: worktree, Support relative submodule URL. | Mitsutaka Naito | 2020-10-13 | 1 | -1/+27 |
| | |||||
* | fix goreportcard warnings | Oleg Kovalov | 2020-07-01 | 1 | -2/+1 |
| | |||||
* | Report "Already up to date" when local repository ahead of remote | Mathias Rüdiger | 2020-06-22 | 1 | -1/+7 |
| | | | | | | | If you run 'git pull', do a commit and run 'git pull' again git will report "Already up to date" whereas go-git would report a reports non-fast-forward update. This commit changes the behavior of go-git to match that of git. | ||||
* | *: migration from gopkg to go modules | Máximo Cuadros | 2020-03-10 | 1 | -12/+12 |
| | |||||
* | Worktree: improve build index performance. (#1179) | Nao YONASHIRO | 2019-07-25 | 1 | -17/+56 |
| | |||||
* | use constant instead of literal string | noonehereplzgo | 2019-06-11 | 1 | -1/+1 |
| | | | | Signed-off-by: Mohammad Kefah <mo@edraj.io> | ||||
* | Keep local changes when checkout branch in worktree. | Linuxer Wang | 2019-05-15 | 1 | -0/+2 |
| | | | | Signed-off-by: Linuxer Wang <linuxerwang@gmail.com> | ||||
* | git: remove potentially duplicate check for unstaged files | Tobias Meinhardt | 2019-03-05 | 1 | -11/+0 |
| | | | | Signed-off-by: Tobias Meinhardt <tobias.meinhardt89@gmail.com> | ||||
* | worktree: add sentinel error for non-fast-forward pull | Alexey Smirnov | 2019-02-07 | 1 | -5/+6 |
| | | | | Signed-off-by: Alexey Smirnov <unlinkat@gmail.com> | ||||
* | Add Status.IsUntracked function | kuba-- | 2018-08-29 | 1 | -3/+1 |
| | | | | Signed-off-by: kuba-- <kuba@sourced.tech> | ||||
* | Remove empty dirs when cleaning with Dir opt. | kuba-- | 2018-08-29 | 1 | -14/+44 |
| | | | | Signed-off-by: kuba-- <kuba@sourced.tech> | ||||
* | worktree: Don't allow .gitmodules to be a symlink. Fixes CVE-2018-11235 | Joseph Vusich | 2018-05-30 | 1 | -0/+12 |
| | | | | | | | | | References: * https://blogs.msdn.microsoft.com/devops/2018/05/29/announcing-the-may-2018-git-security-vulnerability/ * https://security-tracker.debian.org/tracker/CVE-2018-11235 * https://github.com/git/git/commit/10ecfa76491e4923988337b2e2243b05376b40de Signed-off-by: Joseph Vusich <jvusich@amazon.com> | ||||
* | Worktree: Provide ability to add excludes (#825) | Alan D. Cabrera | 2018-05-11 | 1 | -0/+3 |
| | | | Worktree: Provide ability to add excludes | ||||
* | Added support for non-symlink checkouts on Windows when elevated rights are ↵ | Felix Kollmann | 2018-03-12 | 1 | -0/+16 |
| | | | | | | missing This implementation mimicks the behavior of Git on Windows Signed-off-by: Felix Kollmann <mail@fkollmann.de> | ||||
* | all: remove some unused code | Daniel Martí | 2018-03-01 | 1 | -4/+0 |
| | | | | Signed-off-by: Daniel Martí <mvdan@mvdan.cc> | ||||
* | git: Worktree.Grep() support multiple patterns and pathspecs | Sunny | 2017-12-20 | 1 | -23/+61 |
| | | | | Signed-off-by: Sunny <me@darkowlzz.space> | ||||
* | git: worktree, add Grep() method for git grep (#686) | Sunny | 2017-12-12 | 1 | -0/+100 |
| | | | 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 clean | Sunny | 2017-12-04 | 1 | -0/+27 |
| | | | | | | | 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 fetches | Nick Thomas | 2017-11-27 | 1 | -0/+1 |
| | |||||
* | update to go-billy.v4 and go-git-fixtures.v3 | Máximo Cuadros | 2017-11-23 | 1 | -2/+2 |
| | | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com> | ||||
* | Fix spelling Unstagged -> Unstaged | Benjamin Nørgaard | 2017-10-08 | 1 | -3/+3 |
| | |||||
* | Worktree.Reset ignore untracked files on Merge mode | Máximo Cuadros | 2017-09-01 | 1 | -73/+115 |
| | |||||
* | Merge pull request #531 from mcuadros/ref-name | Máximo Cuadros | 2017-08-02 | 1 | -3/+3 |
|\ | | | | | plumbing: moved `Reference.Is*` methods to `ReferenceName.Is*` | ||||
| * | *: use the new API for ReferenceName.Is* methods | Máximo Cuadros | 2017-08-02 | 1 | -3/+3 |
| | | |||||
* | | reuse Auth method when recursing submodules, fixes #521 | Devon Barrett | 2017-07-29 | 1 | -7/+7 |
|/ | |||||
* | Merge pull request #513 from mcuadros/worktree-fs | Máximo Cuadros | 2017-07-27 | 1 | -10/+12 |
|\ | | | | | worktree: expose underlying filesystem | ||||
| * | worktree: expose underlying filesystem | Máximo Cuadros | 2017-07-26 | 1 | -10/+12 |
| | | |||||
* | | remote: pull refactor to match default behaviour | Máximo Cuadros | 2017-07-26 | 1 | -3/+46 |
|/ | |||||
* | *: package context support in Repository, Remote and Submodule | Máximo Cuadros | 2017-07-26 | 1 | -2/+16 |
| | |||||
* | move Repository.Pull to Worktree.Pull | Máximo Cuadros | 2017-07-24 | 1 | -0/+41 |
| | |||||
* | Merge pull request #493 from src-d/windows | Máximo Cuadros | 2017-07-19 | 1 | -0/+5 |
|\ | | | | | *: several windows support fixes | ||||
| * | worktree: submodules, missing err validation on load config | Máximo Cuadros | 2017-07-19 | 1 | -0/+4 |
| | | |||||
| * | worktree: close .gitmodule files | Máximo Cuadros | 2017-07-19 | 1 | -0/+1 |
| | | |||||
* | | worktree: checkout, create branch | Máximo Cuadros | 2017-07-18 | 1 | -4/+33 |
|/ | |||||
* | worktree: fix ioutil import path | Máximo Cuadros | 2017-06-19 | 1 | -1/+1 |
| | |||||
* | worktree: support for symlinks | Máximo Cuadros | 2017-06-19 | 1 | -14/+35 |
| | |||||
* | *: upgrade to go-billy.v3, merge | Máximo Cuadros | 2017-06-18 | 1 | -2/+3 |
| | |||||
* | *: applying new index.Index changes | Máximo Cuadros | 2017-04-26 | 1 | -3/+3 |
| | |||||
* | worktree: reset and checkout support for submodules | Máximo Cuadros | 2017-04-15 | 1 | -20/+93 |
| | |||||
* | worktree, reset implementation and status improvements | Máximo Cuadros | 2017-04-12 | 1 | -11/+76 |
| | |||||
* | worktree, status implementation based on merkletrie and reset and checkout ↵ | Máximo Cuadros | 2017-04-11 | 1 | -229/+157 |
| | | | | implementations | ||||
* | Merge pull request #296 from ajnavarro/improvement/repository | Santiago M. Mola | 2017-03-21 | 1 | -1/+1 |
|\ | | | | | git: Repository methods changes | ||||
| * | git: Repository methods changes | Antonio Jesus Navarro Perez | 2017-03-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To have a more consistent public API, we decided to rename some methods, and add others: - Commit method renamed to CommitObject - Commits method renamed to CommitObjects - Tree method renamed to TreeObject - Trees method renamed to TreeObjects - Tags method renamed to TagObjects - Tag method renamed to TagObject - Added method Tags that returns tag references - Added method Branches that returns branch references - Added method Notes that returns note references - Added BlobObject method - Added BlobObjects method Also, we added more functionality related to references: - Added iterator to iterate References with a specific filter Some notes: - #298 | ||||
* | | use go-billy.v2 version | Antonio Jesus Navarro Perez | 2017-03-10 | 1 | -1/+1 |
| | | |||||
* | | project: move imports from srcd.works to gopkg.in | Antonio Jesus Navarro Perez | 2017-03-07 | 1 | -6/+6 |
|/ | | | | To be able to fix #261 we will move again to gopkg.in before v4 stable release. | ||||
* | replace os.FileMode use with filemode.FileMode | Alberto Cortés | 2017-03-01 | 1 | -25/+24 |
| | |||||
* | documentation and API improvements | Máximo Cuadros | 2017-02-21 | 1 | -1/+0 |
| |