tiktok-sparo/assets/js/8146683f.ae7f0ba9.js
2024-03-01 00:22:15 -08:00

1 line
No EOL
3.3 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[373],{317:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>l,frontMatter:()=>r,metadata:()=>a,toc:()=>p});var n=o(678),s=o(4738);const r={title:"sparo auto-config"},i=void 0,a={id:"pages/commands/sparo_auto-config",title:"sparo auto-config",description:"You do not normally need to invoke sparo auto-config. As the name implies, it is automatically applied by sparo clone. This command is provided for reapplying the configuration in a situation where the user may have manually altered Sparo's configuration. It is a good first step when investigating problems.",source:"@site/docs/pages/commands/sparo_auto-config.md",sourceDirName:"pages/commands",slug:"/pages/commands/sparo_auto-config",permalink:"/sparo/pages/commands/sparo_auto-config",draft:!1,unlisted:!1,editUrl:"https://github.com/tiktok/sparo/tree/main/apps/website/docs/pages/commands/sparo_auto-config.md",tags:[],version:"current",frontMatter:{title:"sparo auto-config"},sidebar:"docsSidebar",previous:{title:"Overview",permalink:"/sparo/pages/commands/overview"},next:{title:"sparo checkout",permalink:"/sparo/pages/commands/sparo_checkout"}},c={},p=[{value:"Auto-config settings",id:"auto-config-settings",level:2}];function u(e){const t={a:"a",code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"sparo auto-config\r\n\r\nAutomatic setup optimized git config\r\n\r\nOptions:\r\n --help Show help [boolean]\r\n --overwrite [boolean] [default: false]\n"})}),"\n",(0,n.jsxs)(t.p,{children:["You do not normally need to invoke ",(0,n.jsx)(t.code,{children:"sparo auto-config"}),". As the name implies, it is automatically applied by ",(0,n.jsx)(t.code,{children:"sparo clone"}),". This command is provided for reapplying the configuration in a situation where the user may have manually altered Sparo's configuration. It is a good first step when investigating problems."]}),"\n",(0,n.jsx)(t.h2,{id:"auto-config-settings",children:"Auto-config settings"}),"\n",(0,n.jsxs)(t.p,{children:["The implementation can be found in ",(0,n.jsx)(t.a,{href:"https://github.com/tiktok/sparo/blob/main/apps/sparo-lib/src/services/GitService.ts",children:"GitService.ts"}),". Below is a summary of the currently applied settings:"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"pull.rebase=true\r\nfetch.prune=true\r\nfetch.showForcedUpdates=false\r\nfeature.manyFiles=true\r\ncore.fsmonitor=true\r\ncore.fscache=true\r\ncore.untrackedcache=true\r\nom-my-zsh.hide-status=1\r\non-my-zsh.hide-dirty=1\r\nlfs.allowincompletepush=true\r\nlfs.concurrenttransfers=32\r\npush.autoSetupRemote=true\n"})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},4738:(e,t,o)=>{o.d(t,{R:()=>i,x:()=>a});var n=o(6166);const s={},r=n.createContext(s);function i(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);