Commit graph

14 commits

Author SHA1 Message Date
fed68e7597
gitconfig: more aliases and small config tweak
Summary:
- `fpush` `--force-with-lease` for safer `--force`
- Quick upstream sync with `gon` (main) or `gor` (master)
- `spop` for `stash pop`
- `sshow` for `show --show-signature`

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: try the commands.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D354
2024-06-18 17:42:24 +09:00
5e2a2c7516
gitconfig: add some extra rules
Summary:
From https://github.com/simnalamburt/.dotfiles/blob/main/.gitconfig

Apache-2.0 license used.

Also:

 - fix `npm run` command
 - fix incorrect `.gitconfig` rule.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really as well.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D225
2024-06-09 21:30:25 +09:00
b0ae699487
gitattributes/arclint: add
Summary:
Mostly from rWEBXYZ. Added to `.gitconfig` via `core.attributesFile`.

Also: add some arclint

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D224
2024-06-09 21:30:23 +09:00
d5b6e05a86
gitalias: add more rules
Summary:
 - add !command in correct sections to prevent mistakes
 - alphabetize
 - `diffs` for `diff --staged`
 - `prod` to quick deploy to `prod` branch for some repos.
 - `staash` for `stash -a`

also:
 - add `max_line_length: 80` to editorconfig
 - autofix `TXT1` rule for `.arclint`
 - `rerere.autoUpdate = tru` for `gitconfig`
 - add prettier
 - fix nfty.yml
 - add `.yamllint` config

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: I think there isn't?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D211
2024-06-08 16:31:19 +09:00
da1e5b8acb
git configs: update
Summary:
- remove redundant `.gitmodule`. No more submodules.
- replace tabs with space as space is the majority here.
- spacing issues @ `.arcconfig`.
- sync `.arclint`.
- alphabetize configs.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: deploy and test?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D171
2024-05-28 21:24:16 +09:00
47afc240b6
Revert "gitconfig: git config --global format.signOff true"
Summary:
This reverts commit 761a5d6c1f.

Was not the thing I was expecting.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: N/A

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D118
2024-05-21 15:49:40 +09:00
e839c265f8
gitconfig: git config --global rerere.enabled true
Summary:
Ref [pro git](https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project).

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `git rerere` with forced merge conflict?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D99
2024-05-19 15:10:31 +09:00
761a5d6c1f
gitconfig: git config --global format.signOff true
Summary:
Ref [man git config](https://git-scm.com/docs/git-config#Documentation/git-config.txt-formatsignOff).

Also disables aliases with `-s` now that config takes over

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Apply patch and `git cm`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D100
2024-05-19 15:10:29 +09:00
92dc476d6f
gitconfig: update smtp config
Summary:
Per [fastmail.help](https://www.fastmail.help/hc/en-us/articles/1500000278342-Server-names-and-ports)

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: try `git send-email`?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D102
2024-05-19 15:10:27 +09:00
221d389edf
gitconfig: git config --global core.quotepath false
Summary:
Per [git.vger.kernel.org](https://lore.kernel.org/git/xmqq1q643whe.fsf@gitster.g/).

Fixes git patch quoting problems, as documented in https://we.phorge.it/T15805. See [git docs](https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath).

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: apply the patch, run `git format-patch` with non-ascii file names, verify unicodes works as intended.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D88
2024-05-15 16:32:36 +09:00
cac61e049a
gitconfig: add credential-helper store
Summary:
See http://go/man/git/credential-store

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Remove the config bar and check git asking for credential. Now patch it and test it again to verify.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D80
2024-05-12 19:04:22 +09:00
5cf35f9cbb
gitconfig: add tag.forceSignAnnotated
Summary:
Config in macOS device. [man git](https://git-scm.com/docs/git-config#Documentation/git-config.txt-tagforceSignAnnotated)

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: test creating tags?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D63
2024-05-10 18:11:03 +09:00
30c04e1cb6
deploy.sh: add deploy commands
Summary:
Also change gitconfig and gitalias to be @ $HOME.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Try `sh deploy.sh` AT YOUR OWN RISK.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D60
2024-05-09 20:44:27 +09:00
7dcaa2e6da
meta: various changes
Summary:
- remove vscode submodule
- git mv git(config|ignore).sample to default.git(config|ignore)
- more rules for editorconfig, alphabetize
- enforce ^
- mv REAMDE.wiki to REAMDE.md but forgot git mv (markup difference would've made them different enough anyway)
- gitconfig to new identity
- change gpg.conf default too

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Read the Diff ™️.

Reviewers: #acl_sudoers, #blessed_reviewers, revi

Reviewed By: #acl_sudoers, #blessed_reviewers, revi

Differential Revision: https://issuetracker.revi.xyz/D18
2024-05-03 12:28:13 +09:00