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

piping and bug fix for when files are not UTF-8 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

atomical
Copy link

@atomical atomical commented May 1, 2013

Did I mess up the way targets works on line 89 of license_header ?

I put this in to handle a required list of files...

$ git log --pretty="%H %cn" | egrep -i "(colvar|klein|rogers|phuong)" | cut -d' ' -f1 | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq | license_header -a --header-file=HEADER

@mbklein
Copy link
Member

mbklein commented May 1, 2013

Oh, yeah. That needs to be a splat the way it was written. I'll take a look at it later today and figure out what needs to change.

The other possibility is to use xargs instead of piping the list of files directly.

@atomical atomical closed this May 1, 2013
@atomical
Copy link
Author

atomical commented May 2, 2013

I was making a change yesterday so I closed it.

@atomical atomical reopened this May 2, 2013
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