aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_status.go
Commit message (Collapse)AuthorAgeFilesLines
* plumbing: filemode, Remove check for setting size of .git/index file (#1159)Nicholas openSUSE Software Engineer2024-08-061-3/+5
| | | | | * plumbing: filemode, Remove check for setting size of .git/index file on staging. Fixes #1003 Co-authored-by: Paulo Gomes <paulo.gomes.uk@gmail.com>
* git: worktree, Add StatusWithOptionsPaulo Gomes2024-08-031-37/+16
| | | | | | | | | | | | | | | | | | | The fix for #119 improves the Worktree.Status() behaviour by preloading all existing files and setting their status to unmodified. Which makes it more reliable when doing per file status verification, however breaks backwards compatibility in two ways: - Increased execution time and space: the preloading can be slow in very large repositories and will increase memory usage when representing the state. - Behaviour: the previous behaviour returned a map with a small subset of entries. The new behaviour will include a new entry for every file within the repository. This commit introduces reverts the change in the default behaviour, and introduces StatusWithOptions so that users can opt-in the new option. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
* git: worktree, Build status based on the current index instead of building ↵Rodrigo Oliveira2024-02-051-1/+38
| | | | it empty. Fixes #119
* git: Worktree.AddWithOptions, add skipStatus option. #993Moran Cohen2024-01-171-10/+17
|
* git: worktree, reset ignored files that are part of the worktree: Fixes #819Stephan2023-09-041-3/+6
|
* squash: replace `if` with `||`ThinkChaos2023-05-311-3/+1
|
* worktree: minor speedup for doAddDirectoryThinkChaos2023-05-301-18/+4
|
* Worktree: Status, add check to see if file already checked in [Fixes 718]John Pastore2023-05-011-1/+3
| | | | Checks if an ignored file was previously checked in. If it was, then the file is not ignored matching native git behavior.
* Worktree: Add, fix add removed files. Fixes #223 (#652)v5.5.2Taketoshi Fujiwara2023-01-051-16/+25
|
* Worktree.AddWithOptions: improve documentation and interfaceMáximo Cuadros2020-06-141-5/+24
|
* feat: add file with using .gitignore, fixed src-d/go-git#1219jk2k2020-06-101-36/+65
|
* *: migration from gopkg to go modulesMáximo Cuadros2020-03-101-11/+11
|
* worktree: enable manual ignore patterns when no .gitignore is availableFabian Sabau2019-03-041-1/+5
| | | | Signed-off-by: Fabian Sabau <fabian.sabau+git@gmail.com>
* Worktree: Provide ability to add excludes (#825)Alan D. Cabrera2018-05-111-0/+3
| | | Worktree: Provide ability to add excludes
* git: worktree, Skip special git directory. Fixes #814kuba--2018-04-181-0/+4
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* new methods Worktree.[AddGlob|RemoveBlob] and recursive Worktree.[Add|Remove]Máximo Cuadros2018-02-261-63/+129
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* new methods Worktree.[AddGlob|AddDirectory]Máximo Cuadros2018-02-011-34/+184
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* all: simplificationferhat elmas2017-11-291-1/+1
| | | | | | | | | | - no length for map initialization - don't check for boolean/error return - don't format string - use string method of bytes buffer instead of converting bytes to string - use `strings.Contains` instead of `strings.Index` - use `bytes.Equal` instead of `bytes.Compare`
* Merge pull request #617 from blacksails/patch-1Ori Rawlings2017-10-091-1/+1
|\ | | | | Fix spelling
| * Fix spellingBenjamin Nørgaard2017-10-091-1/+1
| |
* | Worktree.Add: Support Add deleted files, fixes #571 (#577)grunenwflorian2017-09-051-0/+3
|/
* Worktree.Reset ignore untracked files on Merge modeMáximo Cuadros2017-09-011-13/+29
|
* worktree: expose underlying filesystemMáximo Cuadros2017-07-261-10/+10
|
* remote: fix Worktree.Status on empty repositoryMáximo Cuadros2017-07-131-14/+19
|
* Fixes gitignore ignored on checkoutOleg Sklyar2017-06-201-3/+5
|
* worktree: Add create and push the blob objects to the storerMáximo Cuadros2017-06-191-19/+33
| | | | Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
* Merge pull request #436 from mcuadros/symlinkMáximo Cuadros2017-06-191-6/+27
|\ | | | | worktree: symlink support
| * worktree: support for symlinksMáximo Cuadros2017-06-191-6/+27
| |
* | Adds gitignore supportOleg Sklyar2017-06-191-0/+32
|/
* worktree: Remove and Move methodsMáximo Cuadros2017-05-211-0/+65
|
* Merge branch 'master' of github.com:src-d/go-git into commitMáximo Cuadros2017-05-041-21/+15
|\
| * worktree: Add, logic improvementsMáximo Cuadros2017-05-041-21/+15
| |
* | worktree: Commit method implementationMáximo Cuadros2017-05-041-6/+21
| |
* | worktree: Status return untracked for untracked filesMáximo Cuadros2017-05-041-6/+4
| |
* | worktree: Status return empty status instead of nilMáximo Cuadros2017-05-031-2/+6
|/
* *: applying new index.Index changesMáximo Cuadros2017-04-261-14/+11
|
* worktree: add methodMáximo Cuadros2017-04-261-4/+110
|
* worktree: reset and checkout support for submodulesMáximo Cuadros2017-04-151-12/+42
|
* worktree, reset implementation and status improvementsMáximo Cuadros2017-04-121-23/+21
|
* worktree, status implementation based on merkletrie and reset and checkout ↵Máximo Cuadros2017-04-111-0/+133
implementations