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

Should we tag the code state when the publication was published? #7

Open
bdklahn opened this issue Mar 16, 2020 · 4 comments
Open

Should we tag the code state when the publication was published? #7

bdklahn opened this issue Mar 16, 2020 · 4 comments

Comments

@bdklahn
Copy link
Contributor

bdklahn commented Mar 16, 2020

@srinivvenkat @bryanleroylewis

https://github.com/NSSAC/Coding-Tips-And-Tricks/blob/master/git/readme.md

I've copied in that markdown (at the time of this comment), below.

Use a tag To Mark the State of Any Code Referenced In a Publication

e.g., to add a tag to the commit (branch?) currently checked out.

git tag -a pub2019Sept16

To tag a past commit, simply find and add the hash.

git log
git tag -a pub2019Sept16 4a33129cfb03ba9c418846440601bb712c507c80

Like when commiting, your default editor (vim, in my case) should open to enable you to compose a complete (useful) message.

e.g., maybe include something like the following:

Code state for <title> publication https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1007111

It might even be good to use the tag url when referencing the code in the publication, so people aren't confused if things have changed since the publication. It should still be apparent that/how code changed, when they see the other (newer) branches/commits which are available.
If the readme file mentions the publication, it could also note that tag url.

Tags don't automatically get pushed to remotes, so make sure to do that.

e.g.

git push origin pub2019Sept16

Just including people who might like this suggestion, or have additional input.
@HenningMortveit @shoops @dmachi

@HenningMortveit
Copy link

HenningMortveit commented Mar 16, 2020 via email

@shoops
Copy link

shoops commented Mar 16, 2020 via email

@bdklahn
Copy link
Contributor Author

bdklahn commented Mar 16, 2020 via email

@HenningMortveit
Copy link

HenningMortveit commented Mar 17, 2020 via email

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

3 participants