Git Product home page Git Product logo

Comments (6)

spearce avatar spearce commented on May 8, 2024
The current refs listing provided by +refs appears to be limited to refs/heads/ and
refs/tags/, and doesn't support JSON output. It would be useful to also be able to
list other refs/. Maybe +refs could default to the current listing, but could be extended
with an 'ls-remote'-style filter pattern as the path. If the JSON output could also
include the commit hash of each ref, like ls-remote, that would be perfect.

For instance, https://chromium.googlesource.com/external/msysgit/git/+refs only shows
the branches that we copy into refs/heads/ but there are actually a lot more branches
that are mirrored from upstream into refs/remotes/upstream/, so to get all upstream
branches:
https://chromium.googlesource.com/external/msysgit/git/+refs/remotes/upstream/*

or all 'master' branches (both refs/heads/ and refs/remotes/upstream/):
https://chromium.googlesource.com/external/msysgit/git/+refs/*/master

(FWIW, this is needed by some Chrome scripts which currently shell out to a local git
to run ls-remote, which prevents us from running those scripts on appengine.)

Reported by None on 2014-02-27 09:08:40

from gitiles.

spearce avatar spearce commented on May 8, 2024
Already available with format=TEXT:
$ curl -s 'https://chromium.googlesource.com/external/msysgit/git/+refs?format=TEXT'
| grep -c refs/remotes
36

I guess we could do JSON if you really want.

Reported by None on 2014-02-27 09:30:46

from gitiles.

spearce avatar spearce commented on May 8, 2024
Ah, thanks, I didn't try that format. That's sufficient for my purposes.

Reported by None on 2014-02-27 09:45:11

from gitiles.

spearce avatar spearce commented on May 8, 2024
Works great. Feel free to close.

Reported by None on 2014-02-27 10:47:57

from gitiles.

spearce avatar spearce commented on May 8, 2024
I'll leave this bug open as the description is still accurate, we have neither JSON
output nor a way to list all refs from the HTML view :)

Reported by None on 2014-02-27 10:54:14

from gitiles.

spearce avatar spearce commented on May 8, 2024

Reported by None on 2015-03-25 16:59:16

from gitiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.