aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_test.go
Commit message (Collapse)AuthorAgeFilesLines
* feat: add file with using .gitignore, fixed src-d/go-git#1219jk2k2020-06-101-0/+46
|
* Worktree: revert url change on testMáximo Cuadros2020-03-161-1/+1
|
* ci: based on github actionsv5.0.0Máximo Cuadros2020-03-151-2/+2
|
* *: migration from go-git-fixtures/v4 and go-git/gcfgMáximo Cuadros2020-03-101-1/+1
|
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-11/+11
|
* *: avoid unnecessary conversionsChristian Muehlhaeuser2019-07-291-1/+1
| | | | | | | No need to convert these values, they're already of the right type. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit a1d8a7ac8bd0e4aff0f27dbb8bb37b8bd13a1346)
* *: added missing error checks in testsChristian Muehlhaeuser2019-07-291-0/+1
| | | | | | | | | | When we assign a value to err, make sure to also check for it being nil afterwards. If those were intentionally unchecked, we should remove the assignment in the first place. Those checks certainly never harm, but please review thoroughly and let me know. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 19d6f42a4d814a50bd262fbb69a9b670db9756a2)
* Keep local changes when checkout branch in worktree.Linuxer Wang2019-05-151-0/+40
| | | | Signed-off-by: Linuxer Wang <linuxerwang@gmail.com>
* worktree: test hardcoded excludes when no gitignore is presentFabian Sabau2019-03-041-0/+28
| | | | Signed-off-by: Fabian Sabau <fabian.sabau+git@gmail.com>
* Merge pull request #1065 from vmarkovtsev/fix-unicodev4.10.0Máximo Cuadros2019-02-141-4/+31
|\ | | | | Remove Unicode normalization in difftree
| * Remove Unicode normalization in difftreeVadim Markovtsev2019-02-111-4/+31
| | | | | | | | | | | | Fixes #1057 Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
* | worktree: add sentinel error for non-fast-forward pullAlexey Smirnov2019-02-071-1/+1
|/ | | | Signed-off-by: Alexey Smirnov <unlinkat@gmail.com>
* Remove empty dirs when cleaning with Dir opt.kuba--2018-08-291-0/+9
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* Worktree: Provide ability to add excludes (#825)Alan D. Cabrera2018-05-111-0/+30
| | | Worktree: Provide ability to add excludes
* git: worktree, Skip special git directory. Fixes #814kuba--2018-04-181-0/+38
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* *: skip time consuming testsMáximo Cuadros2018-03-211-0/+9
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* new methods Worktree.[AddGlob|RemoveBlob] and recursive Worktree.[Add|Remove]Máximo Cuadros2018-02-261-14/+125
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* new methods Worktree.[AddGlob|AddDirectory]Máximo Cuadros2018-02-011-0/+160
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Merge pull request #695 from darkowlzz/grep-multiple-patterns-pathspecMáximo Cuadros2017-12-201-8/+59
|\ | | | | git: Worktree.Grep() support multiple patterns and pathspecs
| * git: Worktree.Grep() support multiple patterns and pathspecsSunny2017-12-201-8/+59
| | | | | | | | Signed-off-by: Sunny <me@darkowlzz.space>
* | *: simplicationferhat elmas2017-12-181-2/+2
|/ | | | | | - no unnecessary err/bool check, uses them directly Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
* git: worktree, add Grep() method for git grep (#686)Sunny2017-12-121-0/+185
| | | 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.
* storage: filesystem, add support for git alternates (#663)Sunny2017-12-061-0/+30
| | | | This change adds a new method Alternates() in DotGit to check and query alternate source.
* test: git, Worktree.Clean()Sunny2017-12-041-0/+35
|
* all: fixes for ineffective assignferhat elmas2017-11-261-0/+12
|
* update to go-billy.v4 and go-git-fixtures.v3Máximo Cuadros2017-11-231-6/+5
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Fix spelling Unstagged -> UnstagedBenjamin Nørgaard2017-10-081-1/+1
|
* Worktree.Add: Support Add deleted files, fixes #571 (#577)grunenwflorian2017-09-051-0/+4
|
* Worktree.Reset ignore untracked files on Merge modeMáximo Cuadros2017-09-011-35/+114
|
* *: windows support, some more fixes (2) (#536)Manuel Carmona2017-08-071-0/+4
| | | | | | | | | | | | | | * fixed windows failed test: "143 FAIL: worktree_test.go:314: WorktreeSuite.TestFilenameNormalization" * fixed windows failed test: "489: FAIL: auth_method_test.go:106: SuiteCommon.TestNewSSHAgentAuthNoAgent" * fixed windows failed test: "279 FAIL: server_test.go:50: ServerSuite.TestClone" fixed windows failed test: "298 FAIL: server_test.go:37: ServerSuite.TestPush" * fixed windows failed test: "316 FAIL: <autogenerated>:26: UploadPackSuite.TearDownSuite" * fixed windows failed test: "FAIL: <autogenerated>:6: IndexSuite.TearDownSuite"
* *: windows support, some more fixes (#533)Manuel Carmona2017-08-031-4/+11
| | | | | | | | | | * fixed windows failed test: "134 FAIL: repository_test.go:340: RepositorySuite.TestPlainOpenBareRelativeGitDirFileTrailingGarbage" * fixed windows failed test: "143 FAIL: worktree_test.go:367: WorktreeSuite.TestCheckoutIndexOS" * fixed windows failed test: "296 FAIL: receive_pack_test.go:36: ReceivePackSuite.TearDownTest" * fixed windows failed test: "152 FAIL: worktree_test.go:278: WorktreeSuite.TestCheckoutSymlink"
* Merge pull request #526 from joshbetz/fix/filename-formMáximo Cuadros2017-08-021-0/+43
|\ | | | | Normalize filenames before comparing.
| * worktree: normalized string comparison testsMáximo Cuadros2017-08-021-0/+43
| |
* | config: multiple values in RemoteConfig (URLs and Fetch)Santiago M. Mola2017-08-011-4/+4
|/ | | | | | | | * Change `URL string` to `URL []string` in `RemoteConfig`, since git allows multiple URLs per remote. See: http://marc.info/?l=git&m=116231242118202&w=2 * Fix marshalling of multiple fetch refspecs.
* Merge pull request #513 from mcuadros/worktree-fsMáximo Cuadros2017-07-271-60/+60
|\ | | | | worktree: expose underlying filesystem
| * worktree: expose underlying filesystemMáximo Cuadros2017-07-261-60/+60
| |
* | remote: pull refactor to match default behaviourMáximo Cuadros2017-07-261-0/+60
|/
* *: package context support in Repository, Remote and SubmoduleMáximo Cuadros2017-07-261-1/+2
|
* move Repository.Pull to Worktree.PullMáximo Cuadros2017-07-241-0/+159
|
* worktree: checkout, create branchMáximo Cuadros2017-07-181-18/+67
|
* remote: fix Worktree.Status on empty repositoryMáximo Cuadros2017-07-131-0/+19
|
* worktree: test improvemnts on empty worktreeMáximo Cuadros2017-07-131-32/+10
|
* Adds test that checkout possible with untracked files under gitignoreOleg Sklyar2017-06-211-4/+30
|
* worktree: Add create and push the blob objects to the storerMáximo Cuadros2017-06-191-0/+11
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Merge pull request #436 from mcuadros/symlinkMáximo Cuadros2017-06-191-0/+51
|\ | | | | worktree: symlink support
| * worktree: support for symlinksMáximo Cuadros2017-06-191-0/+51
| |
* | Merge pull request #429 from silvertern/gitignoreMáximo Cuadros2017-06-191-0/+50
|\ \ | |/ |/| Adds .gitignore support
| * Adds gitignore supportOleg Sklyar2017-06-191-0/+50
| |
* | *: upgrade to go-billy.v3, mergeMáximo Cuadros2017-06-181-7/+7
|/
* worktree: Remove and Move methodsMáximo Cuadros2017-05-211-0/+110
|