mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 06:34:26 +02:00
add git gc command
This commit is contained in:
parent
9d76f28ed9
commit
1e1c3a46e6
2 changed files with 10 additions and 2 deletions
|
@ -1836,7 +1836,7 @@ GitEngine.prototype.pruneTreeAndPlay = function() {
|
|||
this.animationFactory.playRefreshAnimationSlow(this.gitVisuals);
|
||||
};
|
||||
|
||||
GitEngine.prototype.pruneTree = function() {
|
||||
GitEngine.prototype.pruneTree = function(doPrintWarning = true) {
|
||||
var set = this.getUpstreamBranchSet();
|
||||
// don't prune commits that HEAD depends on
|
||||
var headSet = Graph.getUpstreamSet(this, 'HEAD');
|
||||
|
@ -1857,7 +1857,7 @@ GitEngine.prototype.pruneTree = function() {
|
|||
// the switch sync
|
||||
return;
|
||||
}
|
||||
if (this.command) {
|
||||
if (this.command && doPrintWarning) {
|
||||
this.command.addWarning(intl.str('hg-prune-tree'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue