emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stash


From: Harald Hanche-Olsen
Subject: Re: Stash
Date: Mon, 06 Apr 2015 17:07:13 +0200
User-agent: Postbox 3.0.11 (Macintosh/20140602)

Steinar Bang wrote:

Good explanation, but …
"origin/master" and "master" are actually files:
  .git/refs/heads/master
  .git/refs/remotes/origin/master

Inside the files is a sha1 hash uniquely defining a commit.

They are more than that. There is also behaviour associated with these branches found in the configuration:

; git config --get-regexp '^branch.master'
branch.master.remote origin
branch.master.merge refs/heads/master
; git config --get-regexp '^remote.origin'
remote.origin.url git://git.savannah.gnu.org/emacs.git
remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
;

(Or just look into .git/config.)

I suppose that you can argue that this is external to the branches themselves, but really, the merging and fetching behaviours are central to how these branches work.

– Harald



reply via email to

[Prev in Thread] Current Thread [Next in Thread]