mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 04:47:42 +03:00
Freaking whitespaces
This commit is contained in:
parent
1516dd1095
commit
80efa6c6ac
@ -288,7 +288,7 @@ export class BaseBranch {
|
||||
}
|
||||
|
||||
commitUrl(commitId: string): string | undefined {
|
||||
// Different Git providers use different paths for the commit url:
|
||||
// Different Git providers use different paths for the commit url:
|
||||
if (this.isBitBucket) {
|
||||
return `${this.repoBaseUrl}/commits/${commitId}`;
|
||||
}
|
||||
@ -306,18 +306,18 @@ export class BaseBranch {
|
||||
if (!upstreamBranchName) return undefined;
|
||||
const baseBranchName = this.branchName.split('/')[1];
|
||||
const branchName = upstreamBranchName.split('/').slice(3).join('/');
|
||||
if (this.isBitBucket) {
|
||||
return `${this.repoBaseUrl.trim()}/branch/${branchName}?dest=${baseBranchName}`;
|
||||
if (this.isBitBucket) {
|
||||
return `${this.repoBaseUrl.trim()}/branch/${branchName}?dest=${baseBranchName}`;
|
||||
}
|
||||
// The following branch path is good for at least Gitlab and Github:
|
||||
// The following branch path is good for at least Gitlab and Github:
|
||||
return `${this.repoBaseUrl.trim()}/compare/${baseBranchName}...${branchName}`;
|
||||
}
|
||||
|
||||
private get isBitBucket(): boolean {
|
||||
return this.repoBaseUrl.includes('bitbucket.org');
|
||||
}
|
||||
private get isBitBucket(): boolean {
|
||||
return this.repoBaseUrl.includes('bitbucket.org');
|
||||
}
|
||||
|
||||
private get isGitlab(): boolean {
|
||||
return this.repoBaseUrl.includes('gitlab.com');
|
||||
}
|
||||
private get isGitlab(): boolean {
|
||||
return this.repoBaseUrl.includes('gitlab.com');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user