jesseduffield.lazygit/pkg
Jesse Duffield 2df78b257b don't pass single commands directly to RunCommand (or equivalent function)
when it contains percentages.

This is a really strange one. It's a linting warning in my editor
and it doesn't stop me from compiling, but it breaks `go test`.

A basic file to reproduce what I'm talking about:

package main

import "fmt"

func main() {
	notSprintf("test %s") // compiler complains here thinking %s needs a corresponding argument
}

func notSprintf(formatStr string, formatArgs ...interface{}) string {
	if formatArgs != nil {
		return formatStr
	}
	return fmt.Sprintf(formatStr, formatArgs...)
}
2019-11-21 21:59:25 +11:00
..
app 472 - Don't panic if not in a repository 2019-07-14 14:24:18 +10:00
commands don't pass single commands directly to RunCommand (or equivalent function) 2019-11-21 21:59:25 +11:00
config add some shameless self promotion 2019-11-10 22:32:13 +11:00
gui couple of things to clean up after rebasing onto master 2019-11-21 21:17:31 +11:00
i18n add tags panel 2019-11-21 21:16:05 +11:00
test fix up tests 2019-03-02 13:39:09 +11:00
theme support split view in staging panel and staging ranges 2019-11-05 19:22:01 +11:00
updates remove go-getter 2019-11-12 22:58:01 +11:00
utils allow changing tabs with [ and ] 2019-11-21 21:15:05 +11:00