mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
rename to filtered mode
This commit is contained in:
parent
624ae45ebb
commit
a2790cfe8e
14 changed files with 106 additions and 93 deletions
6
main.go
6
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue