drone build Sun Sep 20 15:08:31 PDT 2026

This commit is contained in:
2026-09-20 22:08:31 +00:00
parent 1d51eaebec
commit 207d8c1cd5
731 changed files with 8308 additions and 5281 deletions
+155 -29
View File
@@ -40,7 +40,80 @@
<style>.post-metadata {
<style>#toc {
float: right;
margin: 1rem 0 1.5rem 1.5rem;
width: min(calc(100% - 1.5rem), 23rem);
/* 23rem is the width of the words 'table of contents' in my header font */
/* yes, it's a bit hacky */
}
@media (max-width: 850px) {
#toc {
float: unset;
margin-top: 2rem;
margin-left: .5rem;
width: calc(100% - .5rem);
}
}
#toc details {
border: thick solid var(--color-pink);
border-radius: 1rem;
margin-top: 1rem;
}
#toc summary {
position: relative;
top: -1.5rem;
left: -.75rem;
width: fit-content;
background: var(--color-bg);
border-radius: .5rem;
}
#toc summary:focus-visible {
outline: .15rem solid var(--color-teal);
}
#toc summary::marker {
font-size: 2.35rem;
}
#toc h2 {
margin-top: 0;
display: inline;
line-height: normal;
}
#toc nav {
position: relative;
top: -1.25rem;
}
#toc li {
margin-block: .45rem 0;
}
@media (max-width: 650px) {
#toc nav > ol {
margin-left: .5rem;
}
}
/* basically we want to style this `ol` as a `ul` */
#toc ol > li {
list-style: disc;
}
#toc ol > li > ol > li {
list-style: circle;
}
#toc ol > li > ol > li > ol > li {
list-style: square;
}
.post-metadata {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
@@ -438,6 +511,8 @@ body:has(dialog[open]) {
color-scheme: light dark;
--font-family: 'Atkinson Hyperlegible Next', sans-serif;
/* if you change the header font, go to post-toc.css and fuck about with the width
of the table of contents */
--font-family-headers: 'Peritel', 'Atkinson Hyperlegible Next', sans-serif;
--font-family-code: 'Atkinson Hyperlegible Mono', monospace;
@@ -496,7 +571,6 @@ body:has(dialog[open]) {
}
/* Base */
* {
box-sizing: border-box;
margin: 0;
@@ -1814,7 +1888,7 @@ switch (currentThemeValue) {
<heading-anchors content="<i class='fa-solid fa-anchor'></i>">
<article data-pagefind-body="">
<h1 id="my-favorite-git-flag">my favorite git flag</h1>
<h1>my favorite git flag</h1>
<div class="post-metadata">
<p>
@@ -1843,13 +1917,64 @@ switch (currentThemeValue) {
<img class="hero" src="/img/shelf-mushrooms.jpg" alt="Picture unrelated to post. Creamy beige shelf mushrooms on a mossy tree trunk." loading="lazy" decoding="async" width="1000" height="666">
<p>do you have a favorite git flag? I do. let's talk about <code>git add -p</code>.</p>
<aside id="toc">
<details>
<summary><h2>table of contents</h2></summary>
<nav class="toc">
<ol>
<li><a href="#the-p-stands-for-partial">the p stands for partial</a>
</li>
<li><a href="#the-primary-purpose">the primary purpose</a>
<ol>
<li><a href="#hunks...">hunks...</a>
</li>
</ol>
</li>
<li><a href="#a-secondary-purpose">a secondary purpose</a>
</li>
<li><a href="#a-tertiary-purpose">a tertiary purpose</a>
</li>
<li><a href="#how-it-works">how it works</a>
<ol>
<li><a href="#y-and-n">y and n</a>
</li>
<li><a href="#q">q</a>
</li>
<li><a href="#a-and-d">a and d</a>
</li>
<li><a href="#s">s</a>
</li>
<li><a href="#e">e</a>
</li>
</ol>
</li>
</ol>
</nav>
</details>
</aside>
<p>do you have a favorite git flag? I do. let's talk about <code>git add -p</code>.</p>
<h2 id="the-p-stands-for-partial">the p stands for partial</h2>
<p>okay, it totally doesn't. it's short for <code>--patch</code>. but 'partial' is my mental trick because it makes a little more sense to me, and it might help you remember it too.</p>
<p>also, <a href="https://xkcd.com/1053/" target="_blank" rel="external">TIL</a>: this command is a shortcut to the <code>patch</code> subcommand of the <code>--interactive</code> flag - a flag I have never in my life used. wild the things you learn when you read the documentation.</p>
<h2 id="the-primary-purpose">the primary purpose</h2>
<p>a classic scenario: you've realized your uncommitted work doesn't just encapsulate one change, and it's not so easily split as to be separable per-file. <code>git add -p</code> instead lets you choose to stage changes chunk-by-chunk, or, as <code>git</code> terms it, hunk-by-hunk.</p>
<h3 id="hunks">hunks</h3>
<h3 id="hunks...">hunks...</h3>
<p>...are not perfect. you can split hunks, but only so much, and there's going to be cases where your changes are <em>so</em> mixed in as to be inseparable.</p>
<h2 id="a-secondary-purpose">a secondary purpose</h2>
<p>I use <code>-p</code> almost every time I use <code>git add</code>, not because I know I will need to split up my work, but to review what changes I made.</p>
@@ -1868,6 +1993,7 @@ switch (currentThemeValue) {
<h3 id="e">e</h3>
<p><strong>edit</strong>. <a href="https://git-scm.com/docs/git-add#_editing_patches" target="_blank" rel="external">read the documentation for manually editing</a> if curious because I don't use this and can't advise on it.</p>
</article>
@@ -1905,51 +2031,51 @@ switch (currentThemeValue) {
<section class="related-posts">
<h2 data-ha-exclude="" id="related-posts">related posts</h2>
<h2 data-ha-exclude="">related posts</h2>
<ol id="postlist">
<li class="post">
<a class="postlink" href="/designing-a-bag/">
<h2 data-ha-exclude="" id="designing-a-bag">designing a bag </h2>
<ul class="postlist-tags">
<li>leather</li>
<li>software</li>
</ul>
<img src="/img/shoelace-bag.jpg" alt="a 3-image collage showcasing a leather crossbody bag. the leather body is brown and fairly simple. up the narrow sides, rope is laced through grommets in a style resembling a shoe lacing. the rope forms the handle and loops seamlessly through the other side of the bag, joining in one point in a figure-8 follow-through knot. At the bottom corners, there are small diagonal lines of stitching to give the bag a small lip around the base and ensure small objects don&#39;t slide out." loading="lazy" decoding="async" width="1000" height="1777">
</a>
</li>
<li class="post">
<a class="postlink" href="/framer-accessibility/">
<h2 data-ha-exclude="" id="framer-accessibility">framer accessibility </h2>
<a class="postlink" href="/comparing-text-editors/">
<h2 data-ha-exclude="">comparing text editors </h2>
<ul class="postlist-tags">
<li>software</li>
</ul>
<img src="/img/framer.png" alt="A screenshot of the Framer projects page showing part of the tile for a very rudimentary project titled Accessibility Test. It has a huge title that just reads Title, a basic form, and some pictures of my dog as notable features." loading="lazy" decoding="async" width="841" height="532">
<img src="/img/horsetail.jpg" alt="Image unrelated to post. Close up on a horsetail plant&#39;s stem, with many small needle-like leaves emerging from all sides of the circular stem at each segmented joint." loading="lazy" decoding="async" width="1000" height="666">
</a>
</li>
<li class="post">
<a class="postlink" href="/azure-locations-and-file-crawling/">
<h2 data-ha-exclude="" id="azure-locations-and-file-crawling">azure locations and file crawling </h2>
<a class="postlink" href="/gender-in-data-models/">
<h2 data-ha-exclude="">gender in data models </h2>
<ul class="postlist-tags">
<li>gender</li>
<li>software</li>
<li>highlight</li>
</ul>
<img src="/img/azure-locations.jpg" alt="A Linux terminal. There is a fun rainbow flag in ascii art at the top, and then the user has called a command asking Azure for a list of locations applicable to a specific resource type. The output is lengthy." loading="lazy" decoding="async" width="1000" height="827">
<img src="/img/peony.jpg" alt="Image unrelated to post. A light pink peony in full bloom, close up." loading="lazy" decoding="async" width="1000" height="666">
</a>
</li>
<li class="post">
<a class="postlink" href="/accessible-image-modals/">
<h2 data-ha-exclude="">accessible image modals </h2>
<ul class="postlist-tags">
<li>software</li>
</ul>
<img src="/img/snacking-seagull.jpg" alt="Image unrelated to post. A seagull floating in the water with a starfish hanging out of eir mouth." loading="lazy" decoding="async" width="1000" height="666">
</a>
</li>
@@ -2006,6 +2132,6 @@ switch (currentThemeValue) {
</footer>
<!-- This page `/my-favorite-git-flag/` was built on 2026-09-20T00:40:39.762Z -->
<!-- This page `/my-favorite-git-flag/` was built on 2026-09-20T22:08:14.586Z -->
</body>
</html>