summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-29 10:11:15 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-29 11:37:29 +1100
commita2790cfe8e6705ebd81c63df2154ec82cb645ae3 (patch)
treeba41523fe4726471a8dfab7c29c93a0365dcb67b /main.go
parent624ae45ebb3f54499a25c4eba0844fa971277c34 (diff)
rename to filtered mode
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 348294b9e..d02e887b3 100644
--- a/main.go
+++ b/main.go
@@ -25,8 +25,8 @@ 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")
+ filterPath := ""
+ flaggy.String(&filterPath, "f", "filter", "Path to filter on in `git log -- <path>`. When in filter mode, the commits, reflog, and stash are filtered based on the given path, and some operations are restricted")
dump := ""
flaggy.AddPositionalValue(&dump, "gitargs", 1, false, "Todo file")
@@ -64,7 +64,7 @@ func main() {
log.Fatal(err.Error())
}
- app, err := app.NewApp(appConfig, logScope)
+ app, err := app.NewApp(appConfig, filterPath)
if err == nil {
err = app.Run()