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

correct behaviour #2

Open
bquast opened this issue Dec 26, 2022 · 5 comments
Open

correct behaviour #2

bquast opened this issue Dec 26, 2022 · 5 comments

Comments

@bquast
Copy link

bquast commented Dec 26, 2022

Hi, I like the idea of these hooks a lot.

I tried using them, but my repo ends up containing my basic.xlsx and a folder .~basic is this the intended behaviour?

From the README I get the idea that it would only be the contents of the folder, did I do something wrong, or do git hooks work differently from 7 years ago?

thanks,
Bastiaan

https://github.com/bquast/basic/

@ckrf
Copy link
Owner

ckrf commented Dec 27, 2022

Thanks! If I recall correctly, this is the correct behavior. The hooks leave a file called "basic.xlsx" in the repo, but it is not an Excel file. It is a "placeholder" text file. All the content is actually stored in the folder ".~[name]".

@bquast
Copy link
Author

bquast commented Dec 27, 2022

Thanks for writing back.

Perhaps I could add the placeholder to .gitignore.

Would it be possible to modify the hooks so that instead of storing in ".~[name]", they are just stored in root directory of the repo?

@bquast
Copy link
Author

bquast commented Dec 27, 2022

Separately (perhaps you know more), I notice that a lot of the XML is not needed, a whole history of when what value was written to which cell, instead of just the most recent version. Would there be a way to strip all this.

For instance, would Excel still open an XSLX file if the timestamp is e.g. NA?

@ckrf
Copy link
Owner

ckrf commented Dec 28, 2022 via email

@bquast
Copy link
Author

bquast commented Dec 29, 2022

Okay thanks.

Yes one XLSX file is fine.

What I did is remove:

# -- config -- #
TMP_PREFIX='.~' # prefix XML directory--should NOT conflict with 
                   # anything in your repo

# -- end config -- #

and:

-d "${TMP_PREFIX}$1

I end up with the XML files in root, but not reflowed and not staged.

Is there something I am missing?

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

No branches or pull requests

2 participants