Commit Graph

29 Commits

Author SHA1 Message Date
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
faa1c563ea removed space at end of line (copy & paste is now possible ;)) 2015-08-05 09:32:58 +00:00
5be9132ad0 added windows linking manual 2015-08-01 11:01:26 +00:00
8924e8f5ce [general] fixed small "things" according to gometalinter 2015-08-01 09:19:26 +00:00
564eecf849 fixed readme 2015-08-01 01:18:50 +00:00
aa88b1207e fixed the readme 2015-08-01 01:16:51 +00:00
17a18be8a5 [main] fixed some directory hazzle 2015-08-01 01:16:17 +00:00
b47aa0d903 [main] show only files that don't match gofmt 2015-08-01 01:16:05 +00:00
95c94fab43 readme 2015-08-01 00:37:23 +00:00
bf38aadb68 readme 2015-08-01 00:37:07 +00:00
112695c340 readme again 2015-08-01 00:36:32 +00:00
ec592d20ae fixed readme 2015-08-01 00:35:13 +00:00
afacf1b156 readme 2015-08-01 00:34:19 +00:00
a2775e8435 [main] added wrapper to execute all files with the filename as suffix 2015-08-01 00:31:03 +00:00
f4272325e7 [general] better failure result handling and method to list files
in current directory
2015-08-01 00:30:22 +00:00
2243d404a8 added binary 2015-08-01 00:29:50 +00:00
d8181277e6 [gotest] new hook for go test and added binary to gitignore 2015-07-31 23:58:20 +00:00
4cac9210a6 added new binary to ignore file 2015-07-31 23:55:09 +00:00
2320382e3b [gofmt] changed result list 2015-07-31 23:54:18 +00:00
33fdadb05f [gobuild] initial hook to check the build 2015-07-31 23:53:25 +00:00
e30a499eec [general] check return codes and seperate method to get the git
working copy root
2015-07-31 23:52:33 +00:00
9b3ae629f8 Merge branch 'master' of github.com:mthie/git-gohooks 2015-07-31 23:21:05 +00:00
b22b00948f Initial commit 2015-08-01 01:20:47 +02:00
69a06255db [main] git commit hook to test the gofmt reliability 2015-07-31 23:19:45 +00:00
47467bb9b5 new gitignore file 2015-07-31 23:19:25 +00:00
0b02e2d1a0 [general] initial methods for easily getting changed files 2015-07-31 23:18:35 +00:00