It includes all refs: heads, tags, remote tracking heads, and non standard
refs if present. It does not include all hashes of all commits present in
the repository.

On Fri, Nov 8, 2019 at 3:43 PM mash <m...@bu.edu> wrote:

> My goal is to build a kernel from a repository and a commit/tag provided
> by a user, and I would like to know if the commit exists before I clone the
> whole tree and then realize,"ah, there so no commit with this id, they must
> have made a typo".
>
> The best thing I have found is git ls-remote, but I am not sure it
> includes all the commits, tags or branches.
>
> I appreciate any help!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-users/9b923a19-b0cb-46a4-bcec-1dac6347f2fc%40googlegroups.com
> <https://groups.google.com/d/msgid/git-users/9b923a19-b0cb-46a4-bcec-1dac6347f2fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CAPktr3%3DyODT47S0%3D4xysb3KD3ZYzDQLPoPKB1vCoNmwi1NN2Ug%40mail.gmail.com.

Reply via email to