Martin Thielecke
cc9ca58a85
fix paths
1 year ago
Martin Thielecke
ff589afc01
Merge pull request #2 from nightlyone/fix_windows
...
Get base also correctly on windows
8 years ago
Ingo Oeser
0400ed0a68
Get base also correctly on windows
...
by stripping the *.exe extension, if present.
8 years ago
Martin Thielecke
5e8edcf3b5
[main] fixed message
8 years ago
Martin Thielecke
4ff4414758
[general|main] Merge branch 'master' of github.com:mthie/git-gohooks
8 years ago
Martin Thielecke
3bc023d578
[main] display error message
8 years ago
Martin Thielecke
b1dda678b6
Merge pull request #1 from nightlyone/simplify
...
Simplify it a bit
8 years ago
Ingo Oeser
f1a92ba9fc
Checking via len is more robust
...
because sometimes such APIs return nil slices, sometimes empty slices.
We want nothing to happen in both cases.
8 years ago
Ingo Oeser
d81ea3f35c
filepath love
...
* use filepath to get correct result of file path operation on every OS.
* use filepath.Walk to get a better idea what is being done here
* simpler way to get the basename of a program; also works on Windows
8 years ago
Ingo Oeser
4bf421d848
Use filepath.Join
...
in order to get correct results on windows, too.
8 years ago
Ingo Oeser
8b627dab53
empty filenames don't have a suffix
...
so elide that condition. Even the small speed win is marginal,
since we just called exec before, which is way more expensive.
8 years ago
Ingo Oeser
d06d40e71a
you actully CAN range over nil slices in Go
...
as Go will just handle it like an empty slice.
8 years ago
Martin Thielecke
faa1c563ea
removed space at end of line (copy & paste is now possible ;))
8 years ago
Martin Thielecke
5be9132ad0
added windows linking manual
8 years ago
Martin Thielecke
8924e8f5ce
[general] fixed small "things" according to gometalinter
8 years ago
Martin Thielecke
564eecf849
fixed readme
8 years ago
Martin Thielecke
aa88b1207e
fixed the readme
8 years ago
Martin Thielecke
17a18be8a5
[main] fixed some directory hazzle
8 years ago
Martin Thielecke
b47aa0d903
[main] show only files that don't match gofmt
8 years ago
Martin Thielecke
95c94fab43
readme
8 years ago
Martin Thielecke
bf38aadb68
readme
8 years ago
Martin Thielecke
112695c340
readme again
8 years ago
Martin Thielecke
ec592d20ae
fixed readme
8 years ago
Martin Thielecke
afacf1b156
readme
8 years ago
Martin Thielecke
a2775e8435
[main] added wrapper to execute all files with the filename as suffix
8 years ago
Martin Thielecke
f4272325e7
[general] better failure result handling and method to list files
...
in current directory
8 years ago
Martin Thielecke
2243d404a8
added binary
8 years ago
Martin Thielecke
d8181277e6
[gotest] new hook for go test and added binary to gitignore
8 years ago
Martin Thielecke
4cac9210a6
added new binary to ignore file
8 years ago
Martin Thielecke
2320382e3b
[gofmt] changed result list
8 years ago
Martin Thielecke
33fdadb05f
[gobuild] initial hook to check the build
8 years ago
Martin Thielecke
e30a499eec
[general] check return codes and seperate method to get the git
...
working copy root
8 years ago
Martin Thielecke
9b3ae629f8
Merge branch 'master' of github.com:mthie/git-gohooks
8 years ago
Martin Thielecke
b22b00948f
Initial commit
8 years ago
Martin Thielecke
69a06255db
[main] git commit hook to test the gofmt reliability
8 years ago
Martin Thielecke
47467bb9b5
new gitignore file
8 years ago
Martin Thielecke
0b02e2d1a0
[general] initial methods for easily getting changed files
8 years ago