aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
Commit message (Collapse)AuthorAgeFilesLines
* Keep local changes when checkout branch in worktree.Linuxer Wang2019-05-151-0/+2
| | | | Signed-off-by: Linuxer Wang <linuxerwang@gmail.com>
* git: remove potentially duplicate check for unstaged filesTobias Meinhardt2019-03-051-11/+0
| | | | Signed-off-by: Tobias Meinhardt <tobias.meinhardt89@gmail.com>
* worktree: add sentinel error for non-fast-forward pullAlexey Smirnov2019-02-071-5/+6
| | | | Signed-off-by: Alexey Smirnov <unlinkat@gmail.com>
* Add Status.IsUntracked functionkuba--2018-08-291-3/+1
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* Remove empty dirs when cleaning with Dir opt.kuba--2018-08-291-14/+44
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* worktree: Don't allow .gitmodules to be a symlink. Fixes CVE-2018-11235Joseph Vusich2018-05-301-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. Cabrera2018-05-111-0/+3
| | | Worktree: Provide ability to add excludes
* Added support for non-symlink checkouts on Windows when elevated rights are ↵Felix Kollmann2018-03-121-0/+16
| | | | | | missing This implementation mimicks the behavior of Git on Windows Signed-off-by: Felix Kollmann <mail@fkollmann.de>
* all: remove some unused codeDaniel Martí2018-03-011-4/+0
| | | | Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
* git: Worktree.Grep() support multiple patterns and pathspecsSunny2017-12-201-23/+61
| | | | Signed-off-by: Sunny <me@darkowlzz.space>
* git: worktree, add Grep() method for git grep (#686)Sunny2017-12-121-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 cleanSunny2017-12-041-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 fetchesNick Thomas2017-11-271-0/+1
|
* update to go-billy.v4 and go-git-fixtures.v3Máximo Cuadros2017-11-231-2/+2
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Fix spelling Unstagged -> UnstagedBenjamin Nørgaard2017-10-081-3/+3
|
* Worktree.Reset ignore untracked files on Merge modeMáximo Cuadros2017-09-011-73/+115
|
* Merge pull request #531 from mcuadros/ref-nameMáximo Cuadros2017-08-021-3/+3
|\ | | | | plumbing: moved `Reference.Is*` methods to `ReferenceName.Is*`
| * *: use the new API for ReferenceName.Is* methodsMáximo Cuadros2017-08-021-3/+3
| |
* | reuse Auth method when recursing submodules, fixes #521Devon Barrett2017-07-291-7/+7
|/
* Merge pull request #513 from mcuadros/worktree-fsMáximo Cuadros2017-07-271-10/+12
|\ | | | | worktree: expose underlying filesystem
| * worktree: expose underlying filesystemMáximo Cuadros2017-07-261-10/+12
| |
* | remote: pull refactor to match default behaviourMáximo Cuadros2017-07-261-3/+46
|/
* *: package context support in Repository, Remote and SubmoduleMáximo Cuadros2017-07-261-2/+16
|
* move Repository.Pull to Worktree.PullMáximo Cuadros2017-07-241-0/+41
|
* Merge pull request #493 from src-d/windowsMáximo Cuadros2017-07-191-0/+5
|\ | | | | *: several windows support fixes
| * worktree: submodules, missing err validation on load configMáximo Cuadros2017-07-191-0/+4
| |
| * worktree: close .gitmodule filesMáximo Cuadros2017-07-191-0/+1
| |
* | worktree: checkout, create branchMáximo Cuadros2017-07-181-4/+33
|/
* worktree: fix ioutil import pathMáximo Cuadros2017-06-191-1/+1
|
* worktree: support for symlinksMáximo Cuadros2017-06-191-14/+35
|
* *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-181-2/+3
|
* *: applying new index.Index changesMáximo Cuadros2017-04-261-3/+3
|
* worktree: reset and checkout support for submodulesMáximo Cuadros2017-04-151-20/+93
|
* worktree, reset implementation and status improvementsMáximo Cuadros2017-04-121-11/+76
|
* worktree, status implementation based on merkletrie and reset and checkout ↵Máximo Cuadros2017-04-111-229/+157
| | | | implementations
* Merge pull request #296 from ajnavarro/improvement/repositorySantiago M. Mola2017-03-211-1/+1
|\ | | | | git: Repository methods changes
| * git: Repository methods changesAntonio Jesus Navarro Perez2017-03-061-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 versionAntonio Jesus Navarro Perez2017-03-101-1/+1
| |
* | project: move imports from srcd.works to gopkg.inAntonio Jesus Navarro Perez2017-03-071-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.FileModeAlberto Cortés2017-03-011-25/+24
|
* documentation and API improvementsMáximo Cuadros2017-02-211-1/+0
|
* submodule update implementationMáximo Cuadros2017-02-151-26/+19
|
* submodule init and update implementationMáximo Cuadros2017-02-141-19/+60
|
* submodule init implementationMáximo Cuadros2017-02-131-10/+48
|
* submodule init implementationMáximo Cuadros2017-02-121-0/+62
|
* git: make Storer public in Repository.Santiago M. Mola2017-02-091-2/+2
|
* Fix compile-time error on Windows (#251)Mateusz Byczkowski2017-02-021-5/+3
| | | | | | syscall.Stat_t it not defined on Windows platform, and hence go-git won't compile on Windows. It's better to pass more generic output of FileInfo `Sys()` (of type interface{}) to `fillSystemInfo` and handle type assertion separately for each platform.
* fix worktree at non linux osMáximo Cuadros2017-01-311-7/+4
|
* new srcd.works/go-git.v4 pathMáximo Cuadros2017-01-301-3/+3
|
* Worktree correct FileMode at index entriesMáximo Cuadros2017-01-301-2/+19
|