Skip to content

Commit

Permalink
Document that short SHAs dont work
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Nov 12, 2023
1 parent a5cec7a commit 1fdc98e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions v3-to-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ and try to set `--ref` from them.
| other | other | "" | error |
|----------|---------|---------|------------------------------|

#### Abbreviated hashes

Because of the fetch loop, git-sync v3 allowed a user to specify `--branch` and
`--rev`, where the rev was a shortened hash (aka SHA), which would be locally
expanded to the full hash. v4 tries hard not to pull extra stuff, which means
we don't have enough information locally to do that resolution, and there no
way to ask the server to do it for us (at least, not as far as we know).

The net result is that, when using a hash for `--ref`, it must be a full hash,
and not an abbreviated form.

### Log-related flags

git-sync v3 exposed a number of log-related flags (e.g. `-logtostderr`). These
Expand Down

0 comments on commit 1fdc98e

Please sign in to comment.