diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 16:28:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-29 11:37:29 +1100 |
commit | 624ae45ebb3f54499a25c4eba0844fa971277c34 (patch) | |
tree | ca20f93742858b2b4231d083e5b6abdab61d69ba /main.go | |
parent | 2756b82f5733c2099c43279ebb1a962101411142 (diff) |
allow scoped mode where the commits/reflog/stash panels are scoped to a file
WIP
restrict certain actions in scoped mode
WIP
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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() |