Martin Thielecke
fab8c6dc84
fix readme
2023-08-24 19:21:00 +02:00
Martin Thielecke
9c40173268
add cilint git hook
2023-08-24 19:18:46 +02:00
Martin Thielecke
cc9ca58a85
fix paths
2022-05-20 21:42:53 +02:00
Martin Thielecke
ff589afc01
Merge pull request #2 from nightlyone/fix_windows
...
Get base also correctly on windows
2015-08-23 00:20:45 +02:00
Ingo Oeser
0400ed0a68
Get base also correctly on windows
...
by stripping the *.exe extension, if present.
2015-08-23 00:16:59 +02:00
Martin Thielecke
5e8edcf3b5
[main] fixed message
2015-08-22 22:12:56 +00:00
Martin Thielecke
4ff4414758
[general|main] Merge branch 'master' of github.com:mthie/git-gohooks
2015-08-22 22:11:51 +00:00
Martin Thielecke
3bc023d578
[main] display error message
2015-08-22 22:11:48 +00:00
Martin Thielecke
b1dda678b6
Merge pull request #1 from nightlyone/simplify
...
Simplify it a bit
2015-08-23 00:08:25 +02:00
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.
2015-08-22 23:52:09 +02:00
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
2015-08-22 23:45:53 +02:00
Ingo Oeser
4bf421d848
Use filepath.Join
...
in order to get correct results on windows, too.
2015-08-22 23:08:05 +02:00
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.
2015-08-22 22:59:27 +02:00
Ingo Oeser
d06d40e71a
you actully CAN range over nil slices in Go
...
as Go will just handle it like an empty slice.
2015-08-22 22:55:05 +02:00
Martin Thielecke
faa1c563ea
removed space at end of line (copy & paste is now possible ;))
2015-08-05 09:32:58 +00:00
Martin Thielecke
5be9132ad0
added windows linking manual
2015-08-01 11:01:26 +00:00
Martin Thielecke
8924e8f5ce
[general] fixed small "things" according to gometalinter
2015-08-01 09:19:26 +00:00
Martin Thielecke
564eecf849
fixed readme
2015-08-01 01:18:50 +00:00
Martin Thielecke
aa88b1207e
fixed the readme
2015-08-01 01:16:51 +00:00
Martin Thielecke
17a18be8a5
[main] fixed some directory hazzle
2015-08-01 01:16:17 +00:00
Martin Thielecke
b47aa0d903
[main] show only files that don't match gofmt
2015-08-01 01:16:05 +00:00
Martin Thielecke
95c94fab43
readme
2015-08-01 00:37:23 +00:00
Martin Thielecke
bf38aadb68
readme
2015-08-01 00:37:07 +00:00
Martin Thielecke
112695c340
readme again
2015-08-01 00:36:32 +00:00
Martin Thielecke
ec592d20ae
fixed readme
2015-08-01 00:35:13 +00:00
Martin Thielecke
afacf1b156
readme
2015-08-01 00:34:19 +00:00
Martin Thielecke
a2775e8435
[main] added wrapper to execute all files with the filename as suffix
2015-08-01 00:31:03 +00:00
Martin Thielecke
f4272325e7
[general] better failure result handling and method to list files
...
in current directory
2015-08-01 00:30:22 +00:00
Martin Thielecke
2243d404a8
added binary
2015-08-01 00:29:50 +00:00
Martin Thielecke
d8181277e6
[gotest] new hook for go test and added binary to gitignore
2015-07-31 23:58:20 +00:00
Martin Thielecke
4cac9210a6
added new binary to ignore file
2015-07-31 23:55:09 +00:00
Martin Thielecke
2320382e3b
[gofmt] changed result list
2015-07-31 23:54:18 +00:00
Martin Thielecke
33fdadb05f
[gobuild] initial hook to check the build
2015-07-31 23:53:25 +00:00
Martin Thielecke
e30a499eec
[general] check return codes and seperate method to get the git
...
working copy root
2015-07-31 23:52:33 +00:00
Martin Thielecke
9b3ae629f8
Merge branch 'master' of github.com:mthie/git-gohooks
2015-07-31 23:21:05 +00:00
Martin Thielecke
b22b00948f
Initial commit
2015-08-01 01:20:47 +02:00
Martin Thielecke
69a06255db
[main] git commit hook to test the gofmt reliability
2015-07-31 23:19:45 +00:00
Martin Thielecke
47467bb9b5
new gitignore file
2015-07-31 23:19:25 +00:00
Martin Thielecke
0b02e2d1a0
[general] initial methods for easily getting changed files
2015-07-31 23:18:35 +00:00