mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
moved another function to graph
This commit is contained in:
parent
c3c3a50bdd
commit
e7d9b76b98
3 changed files with 44 additions and 42 deletions
|
@ -1,6 +1,7 @@
|
|||
var _ = require('underscore');
|
||||
var intl = require('../intl');
|
||||
|
||||
var Graph = require('../graph');
|
||||
var Errors = require('../util/errors');
|
||||
var CommandProcessError = Errors.CommandProcessError;
|
||||
var GitError = Errors.GitError;
|
||||
|
@ -177,7 +178,7 @@ var commandConfig = {
|
|||
|
||||
command.validateArgBounds(generalArgs, 1, Number.MAX_VALUE);
|
||||
|
||||
var set = engine.getUpstreamSet('HEAD');
|
||||
var set = Graph.getUpstreamSet(engine, 'HEAD');
|
||||
// first resolve all the refs (as an error check)
|
||||
var toCherrypick = _.map(generalArgs, function(arg) {
|
||||
var commit = engine.getCommitFromRef(arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue