summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/status.go
AgeCommit message (Collapse)Author
2023-09-18Add StatusCommands.IsInNormalRebase and IsInInteractiveRebaseStefan Haller
... and implement RebaseMode in terms of these.
2023-07-31Add CheckedOutBranch to Model structStefan Haller
2023-07-30Centralise logic for obtaining repo pathsJesse Duffield
There are quite a few paths you might want to get e.g. the repo's path, the worktree's path, the repo's git dir path, the worktree's git dir path. I want these all obtained once and then used when needed rather than having to have IO whenever we need them. This is not so much about reducing time spent on IO as it is about not having to care about errors every time we want a path.
2023-05-23Construct arg vector manually rather than parse stringJesse Duffield
By constructing an arg vector manually, we no longer need to quote arguments Mandate that args must be passed when building a command Now you need to provide an args array when building a command. There are a handful of places where we need to deal with a string, such as with user-defined custom commands, and for those we now require that at the callsite they use str.ToArgv to do that. I don't want to provide a method out of the box for it because I want to discourage its use. For some reason we were invoking a command through a shell when amending a commit, and I don't believe we needed to do that as there was nothing user- supplied about the command. So I've switched to using a regular command out- side the shell there
2023-05-20Add convenience builder for git commandsJesse Duffield
2022-08-15Apply refactoring suggestionsnullishamy
2022-01-18refactor to group up more commonly used git command stuffJesse Duffield
2022-01-09refactorJesse Duffield