Julia Evans on Nostr: some of the problems folks have listed so far with the staging area: 1. there are (at ...
some of the problems folks have listed so far with the staging area:
1. there are (at least) 3 ways to diff and the default feels unintuitive (`git diff` vs `git diff --cached` vs `git diff HEAD`)
2. carefully staging changes with `git add -p` and then running `git commit -a` by accident is annoying
3. if you `git stash` with things in the staging area, staged changes are stashed too (can disable with --keep-index)
would love solutions to #2 if anyone has one
(2/?)
Published at
2024-02-05 18:13:57Event JSON
{
"id": "45796b41d5ac2638632e7fe1117fdbb65cfdd35919fb73a498858452a6bd2880",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1707156837,
"kind": 1,
"tags": [
[
"e",
"ef4837955344f0d59d3a1ae35dc29bbaed3a21306e2a8215b5ce8294c384c15f",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/111880230506448122",
"activitypub"
]
],
"content": "some of the problems folks have listed so far with the staging area:\n\n1. there are (at least) 3 ways to diff and the default feels unintuitive (`git diff` vs `git diff --cached` vs `git diff HEAD`)\n2. carefully staging changes with `git add -p` and then running `git commit -a` by accident is annoying\n3. if you `git stash` with things in the staging area, staged changes are stashed too (can disable with --keep-index)\n\nwould love solutions to #2 if anyone has one\n\n(2/?)",
"sig": "a91d2a297af17c37a292ce4548bb324b41b331c772b1f3aab17f0af563e343e9a9856043a50e8da84488ef77ef3264fd9d15b39254b39c7a646a36b6cc6e2044"
}