Skip to content

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.

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.

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?

# 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