Jan De Dobbeleer
906ece2af9
refactor: move environment into it's own module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
f7a07c6b62
refactor(segments): string() to template()
...
moves templating engine to Segment
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0987cafad0
refactor: remove deprecated functionality
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
b816a0bf70
feat: templates for all segments
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
fc456da107
refactor: rename getcwd to pwd
2022-01-20 14:22:29 +01:00
Jan De Dobbeleer
e5dd07fb9a
feat: cache template environment data
2022-01-18 20:14:47 +01:00
Jan De Dobbeleer
0404976b5c
refactor: remove the need for nil argument in mock
2022-01-15 21:38:06 +01:00
Jan De Dobbeleer
29e019511a
refactor: move properties to interface
2022-01-01 20:22:52 +01:00
lnu
393f99da93
fix(git): submodules support
2021-12-24 16:13:25 +01:00
lnu
77993158e2
fix(git): use the right git executable for WSL
...
git executable detection
path conversion when needed
2021-12-23 10:48:54 +01:00
Jan De Dobbeleer
84e3bea1ea
fix(git): include al untracked files
...
relates to #1422
2021-12-13 17:40:41 +01:00
Khaos
457f439a9f
feat(plastic): add Plastic SCM segment
...
* feat(plastic): added Plastic SCM segment
* refactor(plastic): polished new Plastic SCM segment
* refactor: moved common scm segment code into base type
git and plastic share some common methods and status properties. So moving them in a base type keeps the code base DRY
* doc(plastic): Added docs for manual testing Plastic SCM
* fix(plastic): Show files with merge conflicts as unmerged
* fix(plastic): adhere to empty string check guidelines
* fix(plastic): fixed linter errors
* fix(pwsh): alert when we can't download dependencies
resolves #1382
* refactor(plastic): polished new Plastic SCM segment
* refactor: moved common scm segment code into base type
git and plastic share some common methods and status properties
* docs(plastic): added docs for manual testing Plastic SCM
* fix(plastic): show files with merge conflicts as unmerged
* fix(plastic): adhere to empty string check guidelines
* fix(plastic): fixed linter errors
Co-authored-by: Jan De Dobbeleer <jan.de.dobbeleer@gmail.com>
Co-authored-by: Jan De Dobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com>
2021-12-11 22:08:47 +01:00
Jan De Dobbeleer
d9e642a132
fix(git): initialize status correctly
2021-12-08 14:53:41 +01:00
Jan De Dobbeleer
930fc2bfcc
refactor(git): branch status as setter
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
04f841d1b3
fix(git): initialize status correctly
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
98472abafc
feat(git): better logic
2021-12-08 13:46:29 +01:00
Jan De Dobbeleer
09df670e07
refactor: use properties as map type
2021-11-26 11:11:07 +01:00
Jan De Dobbeleer
e8a4fa19b7
fix(git): do not use git.exe on WSL 1
2021-11-25 14:28:18 +01:00
Ted Ballou
bcdfb8180b
feat(git): add symbol to the branch name when truncating
2021-11-18 19:58:57 +01:00
Laurent Nullens
2733865edf
fix(git): read real worktree folder from gitdir
2021-11-12 07:59:03 +00:00
Jan De Dobbeleer
ae9fb25db6
revert: fetch info from the working directory
...
This reverts commit cb17bb914a
.
2021-11-11 08:48:45 +01:00
Jan De Dobbeleer
2d25c59c00
fix(git): remove Repo struct
2021-11-09 17:16:37 +01:00
Jan De Dobbeleer
cb17bb914a
fix: fetch info from the working directory
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
ef3b620513
docs(git): correct property definitions
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
1402dcbcfe
refactor(git): rename properties to fetch
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
42f18697fd
refactor(git): move deprecated functions
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
3f8400e8f1
refactor(git): add branch status to template
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
4dbed1176c
refactor(git): add upstream icon to repo
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
f8fa3ae8af
refactor(git): allow status in template
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
64b63be4d2
refactor(git): add template capabilities
2021-11-09 13:26:59 +01:00
Jan De Dobbeleer
631aace7a8
fix(git): cache command on windows
2021-10-20 22:27:07 +02:00
Jan De Dobbeleer
cdc2998ed8
feat(git): ignore repo based on exclude_folders
2021-10-20 17:12:29 +02:00
bewing
b8d3f5781c
fix(wsl): spotify support
...
If we are in a WSL environment and tasklist.exe is in our PATH, leverage
it to scan for the Spotify.exe window title. Add unit tests and a new
mock for env.isWSL
2021-10-11 09:02:51 +02:00
Aaron Sherber
3ecdffd86c
fix: recognize tag and commit merges
2021-09-14 07:10:13 +02:00
Aaron Sherber
18dcf4be21
fix: recognize remote branch merge
2021-09-13 17:46:49 +02:00
Jan De Dobbeleer
dff3986258
refactor(git): fetch branch name from HEAD file
2021-08-10 06:27:50 +02:00
lnu
94e3d9e0fd
perf(git): read origin url from config
...
new properties added: isWorktree and gitRootFolder
2021-08-02 20:06:15 +02:00
Chris Donnelly
1868e15137
fix(git): cherry-pick/revert tests actually pass now
2021-07-30 16:04:50 +02:00
Chris Donnelly
da83ecee87
fix(git): additional mocks required
...
The mock environment was panicking because the test for `sequencer/todo`
checks the full path exists rather than checking for sequencer/ first.
The additional mock for the file covers this.
I am also reorganizing the mocks so they are sorted by type/method.
2021-07-30 16:04:50 +02:00
Chris Donnelly
27654dbd56
fix(git): tests covering revert/sequencer
2021-07-30 16:04:50 +02:00
Jan De Dobbeleer
fb83354186
fix: int comes in as float from json
...
resolves #755
2021-06-23 22:40:00 +02:00
Jan De Dobbeleer
bc50377850
feat: max branch length
...
resolves #755
2021-05-29 18:46:59 +02:00
Micah Rairdon
36feb76f20
feat: azure devops support for git upstream icons
2021-05-15 17:41:15 +02:00
Jan De Dobbeleer
434cd41faf
fix(git): move untracked to added
...
resolves #628
2021-04-12 19:30:54 +02:00
TravisTX
d570673127
fix(git): status colors without display status
2021-03-13 18:32:11 +01:00
Jan De Dobbeleer
0b3f4da41e
feat(git): only show HEAD context on display_status=false
2021-03-09 20:50:52 +01:00
Jan De Dobbeleer
21f97eebd2
fix(git): use exact executable name
...
can conflict with git.cmd
relates to #315
2021-03-07 17:07:25 +01:00
Jan De Dobbeleer
f96f7ecc42
fix(git): align git commands with posh-git
2021-03-07 14:04:32 +01:00
Jan De Dobbeleer
2ab7ff94d7
feat(git): branch status switch
...
resolves #438
2021-02-19 19:40:13 +01:00
Jan De Dobbeleer
b830ae662a
revert: use concurrent map for command caching
...
This reverts commit 509309c412
.
resolves #394
2021-02-11 17:11:02 +01:00