[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/diffusion/data/ -> DiffusionGitBranch.php (summary)

(no description)

File Size: 102 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  parseRemoteBranchOutput()
  parseLocalBranchOutput()

Functions
Functions that are not part of a class:

parseRemoteBranchOutput($stdout,$only_this_remote = null)   X-Ref
Parse the output of 'git branch -r --verbose --no-abbrev' or similar into
a map. For instance:

array(
'origin/master' => '99a9c082f9a1b68c7264e26b9e552484a5ae5f25',
);

If you specify $only_this_remote, branches will be filtered to only those
on the given remote, **and the remote name will be stripped**. For example:

array(
'master' => '99a9c082f9a1b68c7264e26b9e552484a5ae5f25',
);

param: string stdout of git branch command.
param: string Filter branches to those on a specific remote.
return: map Map of 'branch' or 'remote/branch' to hash at HEAD.

parseLocalBranchOutput($stdout)   X-Ref
As above, but with no `-r`. Used for bare repositories.




Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1