MCPcopy
hub / github.com/Kong/insomnia / fetch

Method fetch

packages/insomnia/src/sync/git/git-vcs.ts:1880–1902  ·  view source on GitHub ↗
({
    singleBranch,
    depth,
    credentialsId,
    relative = false,
  }: {
    singleBranch: boolean;
    depth?: number;
    credentialsId?: string | null;
    relative?: boolean;
  })

Source from the content-addressed store, hash-verified

1878 }
1879
1880 async fetch({
1881 singleBranch,
1882 depth,
1883 credentialsId,
1884 relative = false,
1885 }: {
1886 singleBranch: boolean;
1887 depth?: number;
1888 credentialsId?: string | null;
1889 relative?: boolean;
1890 }) {
1891 console.log('[git] Fetch remote=origin');
1892 return git.fetch({
1893 ...this._baseOpts,
1894 ...gitCallbacks(credentialsId),
1895 singleBranch,
1896 remote: 'origin',
1897 relative,
1898 depth,
1899 prune: true,
1900 pruneTags: true,
1901 });
1902 }
1903
1904 async log(input: { depth?: number } = {}) {
1905 const { depth = 35 } = input;

Callers 15

handleGitPullErrorsMethod · 0.95
entry.main.tsFile · 0.45
makeRequestFunction · 0.45
trackPageViewFunction · 0.45
gitFetchActionFunction · 0.45
DesignEmptyStateFunction · 0.45
fetchImplFunction · 0.45
logMethod · 0.45
checkoutMethod · 0.45

Calls 2

gitCallbacksFunction · 0.90
logMethod · 0.45

Tested by

no test coverage detected