mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
allow scoped mode where the commits/reflog/stash panels are scoped to a file
WIP restrict certain actions in scoped mode WIP
This commit is contained in:
parent
2756b82f57
commit
624ae45ebb
17 changed files with 308 additions and 38 deletions
5
main.go
5
main.go
|
@ -25,6 +25,9 @@ func main() {
|
|||
repoPath := "."
|
||||
flaggy.String(&repoPath, "p", "path", "Path of git repo")
|
||||
|
||||
logScope := ""
|
||||
flaggy.String(&logScope, "s", "scope", "scope for `git log`, typically the path of a file")
|
||||
|
||||
dump := ""
|
||||
flaggy.AddPositionalValue(&dump, "gitargs", 1, false, "Todo file")
|
||||
flaggy.DefaultParser.PositionalFlags[0].Hidden = true
|
||||
|
@ -61,7 +64,7 @@ func main() {
|
|||
log.Fatal(err.Error())
|
||||
}
|
||||
|
||||
app, err := app.NewApp(appConfig)
|
||||
app, err := app.NewApp(appConfig, logScope)
|
||||
|
||||
if err == nil {
|
||||
err = app.Run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue