-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
term: replace (Git) "reference" for "revision" or "commit" #3245
Comments
From same discussion in #3244 (review), I think the conclusion is that the easiest thing to do is to use "commit" everywhere (same as the official reference for
|
p.s. using the more general term "version" instead of revision sometimes is also best. E.g. in the new |
Note: other Git terms we may want to review/avoid are:
|
I can agree on using commit instead of references or revisions, it is more well known and user-friendly.
👍 just to be clear, this specific case ("working tree" -> "current workspace") would apply only for the messages that users see, since it makes sense to talk about trees on the code.
the only instance of "commit hash" that I found on the code was on completion scripts, and it this case it makes more sense to use only commit: dvc/scripts/completion/dvc.zsh Line 142 in 8787ac0
|
Any time a more precise Git term is available in code var/fn names, coments, docstrings, debug output, etc. it should definitely be used, I think. But yes, for user-facing stings we want to simplify terminology and avoid Git jargon as much as possible – hopefully completely.
OK cool that's easy then. We should prob also look for just "hash" which depending on the context may refer to a commit SHA. Thanks |
p.s. I'm down to take this issue as well as other terminology reviews in the code base (e.g. avoid "checksum") but won't have time for it very soon. Maybe next week if I don't keep track of it... |
Looks like we don't use hash at all 😅 |
Term "revision" still exists in Line 54 in 7821fa6
Line 72 in 7821fa6
Line 105 in de1f67a
Line 90 in e7b3297
and maybe Line 110 in fd1e6f4
as well as corresponding changes in dvc/scripts/completion/dvc.zsh besides docstrings, comments, and code, of course – but not expecting those to change right now necessarily (per #3299 (comment)) |
@jorgeorpinel |
Git "revision" means "Synonym for commit (the noun)" per https://git-scm.com/docs/gitglossary#def_revision. Using the more general term "version" instead of revision when possible is also best. E.g. in the new dvc diff description by Ramón: "Compare two different versions of your DVC project (tracked by Git)" – this is the current approach in docs. |
It would look strange and not right to me as an option |
@jorgeorpinel I have no problem with "Compare two different versions" in the docs or any explanations, but |
I have nothing agains the term "revision". Originally I argued it feels more correct than commit in fact (it encompasses branches, tags, etc, not just a commit SHA) but I thought that per some other discussion with Ivan (not in this issue) we had concluded that its best to always use "commit" for simplicity and not to get into Git terminology. But I guess that's not the case? I'm more than happy to keep using "revision"! Just curious about the instances in |
Revisions are slightly more accurate - https://git-scm.com/docs/revisions
References are the ones living in
.git/refs
: https://git-scm.com/book/en/v2/Git-Internals-Git-ReferencesWe use the term references in
metrics
anddiff
commands, but both commands accept revisions, sincerepo.brancher
acceptsrevs
(notrefs
).This change would also require updating the docs.
The text was updated successfully, but these errors were encountered: