-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
many things #1
base: master
Are you sure you want to change the base?
many things #1
Conversation
Hey! Awesome, thanks for reaching out. I've not touched this in ages, but did have a few other ideas too. Will take a look through in the next couple of days and probably merge things in here. |
for i := range config.ScanDirs.Include { | ||
j := i // copy loop variable | ||
globPath := config.ScanDirs.Include[j] | ||
|
||
if(string(globPath[len(globPath)-1:]) == "*"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just treat the path as a regular glob .. expand env vars first but then no need to special case this, just use filepath.Glob. Expand the globs in a separate function.
@@ -37,6 +37,11 @@ func main() { | |||
Usage: "Location of config file", | |||
Value: getDefaultConfigPath(), | |||
}, | |||
&cli.BoolFlag{ | |||
Name: "ignore_dir_errors", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, what kinds of errors are coming up that you're ignoring?
|
||
# if true, walking the directory tree underneath the `include` directories | ||
# will traverse directories pointed to be symlinks | ||
followsymlinks: true | ||
|
||
edit_command: code %WORKING_DIRECTORY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%WORKING_DIRECTORY
is a bit of a hack, maybe use text/template
?
.PHONY: build | ||
build: install | ||
build: | ||
go build -o dirtygit main.go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useful to have linting and install at least
Hi,
I kind of stole your project. If you like the stuff I've been doing, feel free to contact me for a discussion about collaboration. Else big thanks for giving me a head start for a new project.
Cheers,
Pim