git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is ./git/branches used for anything?
@ 2010-02-02  8:01 Ron Garret
  2010-02-02  8:11 ` Sverre Rabbelier
  2010-02-02 15:00 ` Jakub Narebski
  0 siblings, 2 replies; 4+ messages in thread
From: Ron Garret @ 2010-02-02  8:01 UTC (permalink / raw)
  To: git

If so, what?  .git/refs/heads seems to contain all the branch info, so 
what is the branches directory for?

Thanks,
rg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is ./git/branches used for anything?
  2010-02-02  8:01 Is ./git/branches used for anything? Ron Garret
@ 2010-02-02  8:11 ` Sverre Rabbelier
  2010-02-02  8:19   ` Ron Garret
  2010-02-02 15:00 ` Jakub Narebski
  1 sibling, 1 reply; 4+ messages in thread
From: Sverre Rabbelier @ 2010-02-02  8:11 UTC (permalink / raw)
  To: Ron Garret; +Cc: git

Heya,

On Tue, Feb 2, 2010 at 09:01, Ron Garret <ron1@flownet.com> wrote:
> If so, what?  .git/refs/heads seems to contain all the branch info, so
> what is the branches directory for?

It's a leftover from the good ole' days. I think Cogito used it.

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is ./git/branches used for anything?
  2010-02-02  8:11 ` Sverre Rabbelier
@ 2010-02-02  8:19   ` Ron Garret
  0 siblings, 0 replies; 4+ messages in thread
From: Ron Garret @ 2010-02-02  8:19 UTC (permalink / raw)
  To: git

In article 
<fabb9a1e1002020011p4819b918yc9c2379bf68b4b6b@mail.gmail.com>,
 Sverre Rabbelier <srabbelier@gmail.com> wrote:

> Heya,
> 
> On Tue, Feb 2, 2010 at 09:01, Ron Garret <ron1@flownet.com> wrote:
> > If so, what?  .git/refs/heads seems to contain all the branch info, so
> > what is the branches directory for?
> 
> It's a leftover from the good ole' days. I think Cogito used it.

Thanks!

rg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is ./git/branches used for anything?
  2010-02-02  8:01 Is ./git/branches used for anything? Ron Garret
  2010-02-02  8:11 ` Sverre Rabbelier
@ 2010-02-02 15:00 ` Jakub Narebski
  1 sibling, 0 replies; 4+ messages in thread
From: Jakub Narebski @ 2010-02-02 15:00 UTC (permalink / raw)
  To: Ron Garret; +Cc: git

Ron Garret <ron1@flownet.com> writes:

> If so, what?  .git/refs/heads seems to contain all the branch info, so 
> what is the branches directory for?

See gitrepository-layout(5):

  branches::
        A slightly deprecated way to store shorthands to be used
        to specify URL to 'git fetch', 'git pull' and 'git push'
        commands is to store a file in `branches/<name>` and
        give 'name' to these commands in place of 'repository'
        argument.

and git-pull(1):

  REMOTES
  -------

  The name of one of the following can be used instead
  of a URL as `<repository>` argument:

  * a remote in the git configuration file: `$GIT_DIR/config`,
  * a file in the `$GIT_DIR/remotes` directory, or
  * a file in the `$GIT_DIR/branches` directory.

  All of these also allow you to omit the refspec from the command line
  because they each contain a refspec which git will use by default.

  [...]

  Named file in `$GIT_DIR/branches`
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can choose to provide the name of a
  file in `$GIT_DIR/branches`.
  The URL in this file will be used to access the repository.
  This file should have the following format:


  ------------
          <url>#<head>
  ------------

  `<url>` is required; `#<head>` is optional.

  Depending on the operation, git will use one of the following
  refspecs, if you don't provide one on the command line.
  `<branch>` is the name of this file in `$GIT_DIR/branches` and
  `<head>` defaults to `master`.


Ancient history, if somewhat useful for some workflow[1].  It came from
Cogito, which was alternate UI for git.

[1] Namely one of main Linux kernel developers (Linus lieutienants)
has scripts around this way of specifying remote information.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-02 15:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02  8:01 Is ./git/branches used for anything? Ron Garret
2010-02-02  8:11 ` Sverre Rabbelier
2010-02-02  8:19   ` Ron Garret
2010-02-02 15:00 ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).