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

Support for a single value input file #17

Open
rdmurphy opened this issue Nov 18, 2021 · 3 comments
Open

Support for a single value input file #17

rdmurphy opened this issue Nov 18, 2021 · 3 comments
Labels

Comments

@rdmurphy
Copy link
Contributor

Hello! This is great. I have an example repo that is set up in a way that seems mostly compatible with this but tracks a single value in a .txt file. I'm sure I could use the custom converter to pull this off, but does this sound like a format that'd make sense to be supported by default?

@simonw
Copy link
Owner

simonw commented Nov 19, 2021

Oh what an interesting example! I'm not sure this is common enough to warrant a feature, but adding an example --convert pattern to the documentation could help better demonstrate that feature. I'll have a play!

@simonw
Copy link
Owner

simonw commented Nov 19, 2021

It is a bit awkward- this seems to work:

% git-history file actblue.db sitewide_raised_amount.txt --convert '[{"id": 1, "value": int(content)}]' --id id
  [##----------------------------------]  1788/30866    5%  00:01:51

@simonw
Copy link
Owner

simonw commented Nov 19, 2021

Given how awkward that is I'm leaning towards coming up with a default option for this now.

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

No branches or pull requests

2 participants