Skip to content
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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

many things #1

wants to merge 14 commits into from

Conversation

mipmip
Copy link

@mipmip mipmip commented Aug 12, 2024

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

@boyvinall
Copy link
Owner

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:]) == "*"){
Copy link
Owner

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",
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants