-
Notifications
You must be signed in to change notification settings - Fork 72
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
C utilities for summarizing and committing changes #158
Conversation
TODO requested:
Other points come up during review/discussion:
Question: In the code we have size_t tgt_len = ent->fts_statp->st_size + 1;
if (tgt_len == 0) { // apparently fancy FS can lie?
tgt_len = PATH_MAX;
} I guess the point here is that for the strange cases where st_size being -1 (which we have not observed?), this clause is there to make the " |
Along the way, I changed
Recorded these facts in
Added a comment: When everything passes CI, I'll merge. Next stop is #166! |
Not consequential at all but I have to ask: since |
Ah, good catch. Fixed now. (Have you used GH's code review process? There's a whole thing where you "start a review" and group comments and can comment on lines.) |
Attempting a drop-in replacement for the core logic of our
summary()
andcommit()
functions. Closes #126 and #159.TODO
shell script output in try-summary.cthis is easy to do but not necessary now; lefttry-summary
could generate commit shell script #165rm -r
#159mkdir
when file exists at the same path and refactor #83/bug: shell fallback for try-summary and and try-commit break on filenames with newlines #84 (disabled w/o utils)USING
debug intry
sleep
intry-commit.c
writewill do this in another PR, this is too big (and we have workable tests for it for now)make -C utils install
targetTRYCASE
linter