[{"data":1,"prerenderedAt":180},["ShallowReactive",2],{"term-p\u002Fpatch":3,"related-p\u002Fpatch":164},{"id":4,"title":5,"acronym":6,"body":7,"category":146,"description":147,"difficulty":148,"extension":149,"letter":16,"meta":150,"navigation":76,"path":151,"related":152,"seo":158,"sitemap":159,"stem":162,"subcategory":6,"__hash__":163},"terms\u002Fterms\u002Fp\u002Fpatch.md","Patch",null,{"type":8,"value":9,"toc":140},"minimark",[10,15,19,23,31,35,129,133,136],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A patch is a small update that fixes something specific without replacing the whole program. It is a targeted repair, like putting a band-aid on a specific cut rather than replacing the patient. Security patches fix vulnerabilities; bug patches fix broken behavior.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30],{},"A patch is an incremental software update that modifies specific parts of a codebase to fix bugs, close security vulnerabilities, or make minor improvements. In version semantics (semver), patches increment the third number (1.2.X). In git, a patch can also refer to a diff file representing a set of changes that can be applied with ",[27,28,29],"code",{},"git apply",".",[11,32,34],{"id":33},"show-me-the-code","Show Me The Code",[36,37,42],"pre",{"className":38,"code":39,"language":40,"meta":41,"style":41},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Semantic versioning - patch is the last number:\n# 1.2.3 → 1.2.4 (patch: bug fix)\n# 1.2.3 → 1.3.0 (minor: new feature)\n# 1.2.3 → 2.0.0 (major: breaking change)\n\n# Generate a patch file from git:\ngit diff HEAD~1 HEAD > my-fix.patch\n\n# Apply a patch:\ngit apply my-fix.patch\n","bash","",[27,43,44,53,59,65,71,78,84,108,113,119],{"__ignoreMap":41},[45,46,49],"span",{"class":47,"line":48},"line",1,[45,50,52],{"class":51},"sHwdD","# Semantic versioning - patch is the last number:\n",[45,54,56],{"class":47,"line":55},2,[45,57,58],{"class":51},"# 1.2.3 → 1.2.4 (patch: bug fix)\n",[45,60,62],{"class":47,"line":61},3,[45,63,64],{"class":51},"# 1.2.3 → 1.3.0 (minor: new feature)\n",[45,66,68],{"class":47,"line":67},4,[45,69,70],{"class":51},"# 1.2.3 → 2.0.0 (major: breaking change)\n",[45,72,74],{"class":47,"line":73},5,[45,75,77],{"emptyLinePlaceholder":76},true,"\n",[45,79,81],{"class":47,"line":80},6,[45,82,83],{"class":51},"# Generate a patch file from git:\n",[45,85,87,91,95,98,101,105],{"class":47,"line":86},7,[45,88,90],{"class":89},"sBMFI","git",[45,92,94],{"class":93},"sfazB"," diff",[45,96,97],{"class":93}," HEAD~1",[45,99,100],{"class":93}," HEAD",[45,102,104],{"class":103},"sMK4o"," >",[45,106,107],{"class":93}," my-fix.patch\n",[45,109,111],{"class":47,"line":110},8,[45,112,77],{"emptyLinePlaceholder":76},[45,114,116],{"class":47,"line":115},9,[45,117,118],{"class":51},"# Apply a patch:\n",[45,120,122,124,127],{"class":47,"line":121},10,[45,123,90],{"class":89},[45,125,126],{"class":93}," apply",[45,128,107],{"class":93},[11,130,132],{"id":131},"when-youll-hear-this","When You'll Hear This",[16,134,135],{},"\"Apply the security patch before Monday.\" \u002F \"It's a patch release — just bump the patch version.\"",[137,138,139],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":41,"searchDepth":55,"depth":55,"links":141},[142,143,144,145],{"id":13,"depth":55,"text":14},{"id":21,"depth":55,"text":22},{"id":33,"depth":55,"text":34},{"id":131,"depth":55,"text":132},"general","A patch is a small update that fixes something specific without replacing the whole program.","beginner","md",{},"\u002Fterms\u002Fp\u002Fpatch",[153,154,155,156,157],"Hotfix","Bug","Semver","Deploy","Git",{"title":5,"description":147},{"changefreq":160,"priority":161},"weekly",0.7,"terms\u002Fp\u002Fpatch","3Z1hl5mqcbxTh9dTdN2_KW7pVgZUxuyv7408zm9-Srs",[165,168,171,174,177],{"title":154,"path":166,"acronym":6,"category":146,"difficulty":148,"description":167},"\u002Fterms\u002Fb\u002Fbug","A bug is anything in your code that makes it behave wrong.",{"title":156,"path":169,"acronym":6,"category":146,"difficulty":148,"description":170},"\u002Fterms\u002Fd\u002Fdeploy","Deploying is taking your code from your computer and making it live on the internet for real users. Before: only you can see it.",{"title":157,"path":172,"acronym":6,"category":90,"difficulty":148,"description":173},"\u002Fterms\u002Fg\u002Fgit","Git is like a magical save system for your code. Every time you save (commit), it remembers exactly what changed.",{"title":153,"path":175,"acronym":6,"category":146,"difficulty":148,"description":176},"\u002Fterms\u002Fh\u002Fhotfix","A hotfix is an emergency patch you ship immediately to fix a critical bug in production — no waiting for the next planned release.",{"title":155,"path":178,"acronym":155,"category":146,"difficulty":148,"description":179},"\u002Fterms\u002Fs\u002Fsemver","Semver is the numbering system for software versions: MAJOR.MINOR.PATCH.",1776518301231]