aboutsummaryrefslogtreecommitdiffstats
path: root/status.go
Commit message (Collapse)AuthorAgeFilesLines
* git: worktree, Add StatusWithOptionsPaulo Gomes2024-08-031-0/+69
| | | | | | | | | | | | | | | | | | | 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: Fix Status.IsClean() documentationDavid Url2018-10-061-1/+1
| | | | | | | | | The documentation of the IsClean Method contained a negation, so it was describing the opposite of its actual behavior. Fixes #838 Signed-off-by: David Url <david@urld.io>
* Add Status.IsUntracked functionkuba--2018-08-291-2/+11
| | | | Signed-off-by: kuba-- <kuba@sourced.tech>
* worktree: Commit method implementationMáximo Cuadros2017-05-041-1/+1
|
* worktree, reset implementation and status improvementsMáximo Cuadros2017-04-121-53/+31
|
* worktree, status implementation based on merkletrie and reset and checkout ↵Máximo Cuadros2017-04-111-0/+92
implementations