git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Question - List current hashs of branches

From
GHGolarits, Zsigmond (Nokia - HU/Budapest) <zsigmond.golarits@nokia.com>
Date
Oct 5, 2015, 07:29 UTC
Message-ID
<0F7E16B8B216214784C1BD8596C189CA0917BB7C@DEMUMBX012.nsn-intra.net>
In-Reply-To
<CAPc5daX3Vch61Rb0=Htfx2uJcuCxyznnWFQ54uqhpATFG3KL8g@mail.gmail.com>
Hello,
Thanks, for YR reply!
I'd like any solution:
  - the commit hash of a chosen local or remote branch            OR
  - a list of each commit hashes of all local or/and remote branches.

I'd like to write a tool to check more branches in more repos, if they are up to date or there has been a new remote commit (or maybe I did local commit not pushed). We usually works parallel in more branches in more repositories.

Br Zsigmond

-----Original Message-----
From: jch2355@gmail.com [mailto:jch2355@gmail.com] On Behalf Of EXT Junio C Hamano
Sent: Friday, October 02, 2015 8:59 PM
To: Golarits, Zsigmond (Nokia - HU/Budapest)
Cc: git@vger.kernel.org
Subject: Re: Question - List current hashs of branches
for-each-ref & ls-remote?

On Fri, Oct 2, 2015 at 11:54 AM, Golarits, Zsigmond (Nokia - HU/Budapest) <zsigmond.golarits@nokia.com> wrote:

Show 10 quoted lines
> Hello,
>
> How can I get the current commit-hashes of the remote and local branches without check them out?
>
> Br,
> Zsigmond Golarits
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Junio C Hamano
Message 3 of 3 in “Question - List current hashs of branches”
  1. Golarits, Zsigmond (Nokia - HU/Budapest)Oct 2, 2015
  2. Junio C HamanoOct 2, 2015
  3. Golarits, Zsigmond (Nokia - HU/Budapest)Oct 5, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.