mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 16:44:26 +02:00
[Origin] Implement basic git fetch force need to fix up animations
This commit is contained in:
parent
3a23973a9a
commit
6080d324ce
9 changed files with 468 additions and 73 deletions
|
@ -87,11 +87,7 @@ var VisBranch = VisBase.extend({
|
|||
|
||||
// easy logic first
|
||||
if (!this.get('isHead')) {
|
||||
if (this.getIsRemote()) {
|
||||
return (overThreshold) ? 1 : -1;
|
||||
} else {
|
||||
return (overThreshold) ? -1 : 1;
|
||||
}
|
||||
return (overThreshold) ? -1 : 1;
|
||||
}
|
||||
|
||||
// now for HEAD....
|
||||
|
@ -296,8 +292,9 @@ var VisBranch = VisBase.extend({
|
|||
getName: function() {
|
||||
var name = this.get('branch').getName();
|
||||
var selected = this.get('branch') === this.gitEngine.HEAD.get('target');
|
||||
var isRemote = this.getIsRemote();
|
||||
|
||||
var after = (selected && !this.getIsInOrigin()) ? '*' : '';
|
||||
var after = (selected && !this.getIsInOrigin() && !isRemote) ? '*' : '';
|
||||
return name + after;
|
||||
},
|
||||
|
||||
|
@ -435,7 +432,7 @@ var VisBranch = VisBase.extend({
|
|||
var rectSize = this.getRectSize();
|
||||
|
||||
var arrowPath = this.getArrowPath();
|
||||
var dashArray = (this.getIsRemote() || this.getIsInOrigin()) ?
|
||||
var dashArray = (this.getIsInOrigin()) ?
|
||||
GRAPHICS.originDash : '';
|
||||
var cursorStyle = (this.shouldDisableClick()) ?
|
||||
'auto' :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue