Sfoglia il codice sorgente

Sends upstream id on a local branch ref to graph (#2560)

* Sends upstream id on a local branch ref to graph

* Avoids creating (allocating) & spreading an object

* Updates graph dependency

---------

Co-authored-by: Eric Amodio <eamodio@gmail.com>
main
Ramin Tadayon 1 anno fa
committed by GitHub
parent
commit
99314975b8
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
4 ha cambiato i file con 17 aggiunte e 7 eliminazioni
  1. +1
    -1
      package.json
  2. +6
    -1
      src/env/node/git/localGitProvider.ts
  3. +6
    -1
      src/plus/github/githubGitProvider.ts
  4. +4
    -4
      yarn.lock

+ 1
- 1
package.json Vedi File

@ -13407,7 +13407,7 @@
"vscode:prepublish": "yarn run bundle"
},
"dependencies": {
"@gitkraken/gitkraken-components": "7.3.0",
"@gitkraken/gitkraken-components": "8.0.0",
"@microsoft/fast-element": "1.11.0",
"@microsoft/fast-react-wrapper": "0.3.16-0",
"@octokit/core": "4.2.0",

+ 6
- 1
src/env/node/git/localGitProvider.ts Vedi File

@ -2006,7 +2006,12 @@ export class LocalGitProvider implements GitProvider, Disposable {
name: tip,
isCurrentHead: head,
context: serializeWebviewItemContext<GraphItemRefContext>(context),
upstream: branch?.upstream?.name,
upstream: branch?.upstream != null
? {
name: branch.upstream.name,
id: getBranchId(repoPath, true, branch.upstream.name),
}
: undefined,
};
refHeads.push(refHead);
if (branch?.upstream?.name != null) {

+ 6
- 1
src/plus/github/githubGitProvider.ts Vedi File

@ -1286,7 +1286,12 @@ export class GitHubGitProvider implements GitProvider, Disposable {
name: headBranch.name,
isCurrentHead: true,
context: serializeWebviewItemContext<GraphItemRefContext>(context),
upstream: headBranch.upstream?.name,
upstream: headBranch.upstream != null
? {
name: headBranch.upstream.name,
id: getBranchId(repoPath, true, headBranch.upstream.name),
}
: undefined,
},
];

+ 4
- 4
yarn.lock Vedi File

@ -312,10 +312,10 @@
resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6"
integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==
"@gitkraken/gitkraken-components@7.3.0":
version "7.3.0"
resolved "https://registry.yarnpkg.com/@gitkraken/gitkraken-components/-/gitkraken-components-7.3.0.tgz#fd8f2e8d00e3dc4947997bdf78d0d99632c3b0ff"
integrity sha512-LlftWx9c58jA9vMmhhbkBwTtRQ4RA36/BWH6nZ2aggD+L26umChuIBa4aZ25RU6tTlP+QkwGe8Ybu22NULNTCQ==
"@gitkraken/gitkraken-components@8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@gitkraken/gitkraken-components/-/gitkraken-components-8.0.0.tgz#2ab6830de870eb81a44c805dd295f32cd7bada1d"
integrity sha512-cieCMvs8CJg7W/e3Wb4xDRKJjM3JIfnd2BsmSUdI1/g5t9Q2PnVeGgs63gfM7P6JALDq7FgypAamv77VaOijqA==
dependencies:
"@axosoft/react-virtualized" "9.22.3-gitkraken.3"
classnames "2.3.2"

Caricamento…
Annulla
Salva