Commit graph

17 commits

Author SHA1 Message Date
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
882d54328a
gitalias: count = git count-objects -vH
Summary:
mostly for reference purposes...

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

Test Plan: `git count`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D120
2024-05-21 15:49:38 +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
109c34c1ad
gitalias: add more aliases
Summary:
Even more shorter for lazy myself

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

Test Plan: `git a-d`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D71
2024-05-11 16:48:16 +09:00
14c908207b
gitalias: add amends, amendss, change amend
Summary:
- amend: remove `-s` so it's pure `--amend`.
- amends: previous `amend` which is `-s`
- amendss: previous `amends` which is `-s -S`

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

Test Plan: `sh deploy.sh` and run commands

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D76
2024-05-11 16:48:12 +09:00
0f5af9e513
gitaliases: shorter arc shortcuts
Summary:
what's the point of using `git arcdiff` when it is longer than `arc diff`? make it shorter to quicker typing time.

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

Test Plan: `git ad`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D64
2024-05-10 18:11:01 +09:00
fbd4a63e03
gitalias: do not assume master as universal default branch
Summary:
Since around 2020, `main` has gained traction but not everyone has followed suit, so move master-tracking commands to make way for disambig command.

This will let me select my own default primary branch that is neither main nor master.

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

Test Plan: `sh deploy.sh` then try `git com`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D68
2024-05-10 18:10:59 +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
820f0dd2b6
Add new alias
alias ftw

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-10-17 21:54:34 +09:00
c23cf23223
EDITOR=NANO
EX..TER..MI..NATE....

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-10-14 22:05:06 +09:00
2e9ef2fb7d
Add new alias
Lazy

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-08-10 07:48:27 +09:00
a0dfdf7b82
Add few git aliases
life gets easier

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-07-13 00:12:10 +09:00
6807e24a7f
Split commit itself and commit with GPG signature
There are some instances where I can't sign the packages (usually it
's remote server) so I can use signing only on local and not on remo
te.

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-06-29 19:16:25 +09:00
60cc2c5a6a
Move git aliases out of gitconfig
So it can be more effective.

Signed-off-by: Yongmin Hong <revi@pobox.com>
2017-05-29 02:41:05 +09:00