]> git.phdru.name Git - git-scripts.git/log
git-scripts.git
7 months agoFix(pull-usrlocalsrc): Try `origin/main` if `master` absent
Oleg Broytman [Sat, 6 Apr 2024 12:07:02 +0000 (15:07 +0300)]
Fix(pull-usrlocalsrc): Try `origin/main` if `master` absent

9 months agoDocs(unabsorbgitdirs): Add a link to StackOverflow
Oleg Broytman [Tue, 6 Feb 2024 22:28:26 +0000 (01:28 +0300)]
Docs(unabsorbgitdirs): Add a link to StackOverflow

This is where these scripts originated.

9 months agoFeat(unabsorbgitdirs): Add a sentinel
Oleg Broytman [Tue, 6 Feb 2024 22:16:27 +0000 (01:16 +0300)]
Feat(unabsorbgitdirs): Add a sentinel

Check "gitdir:".

9 months agoStyle(unabsorbgitdirs): Use `[]` instead of `test`
Oleg Broytman [Tue, 6 Feb 2024 22:15:24 +0000 (01:15 +0300)]
Style(unabsorbgitdirs): Use `[]` instead of `test`

9 months agoAdd scripts to unabsorb git dirs
Oleg Broytman [Tue, 6 Feb 2024 21:30:03 +0000 (00:30 +0300)]
Add scripts to unabsorb git dirs

They do reverse of `git submodule absorbgitdirs`.
There are simple and recursive variants.

9 months agoFeat(update-remotes): Call `git set-date`
Oleg Broytman [Mon, 5 Feb 2024 16:07:28 +0000 (19:07 +0300)]
Feat(update-remotes): Call `git set-date`

9 months agoFeat: Add `git-current-branch`
Oleg Broytman [Mon, 29 Jan 2024 19:26:22 +0000 (22:26 +0300)]
Feat: Add `git-current-branch`

List ways to get the current branch name.

9 months agoFeat(post-update): Set date after pulling
Oleg Broytman [Wed, 24 Jan 2024 11:51:16 +0000 (14:51 +0300)]
Feat(post-update): Set date after pulling

9 months agoSimplify regular expressions for `compileall`
Oleg Broytman [Tue, 23 Jan 2024 08:36:43 +0000 (11:36 +0300)]
Simplify regular expressions for `compileall`

9 months agoFix(git-set-date): Expand personal alias
Oleg Broytman [Mon, 22 Jan 2024 16:33:55 +0000 (19:33 +0300)]
Fix(git-set-date): Expand personal alias

9 months agoFix(set-last-commit-date): Use `git show -s`
Oleg Broytman [Mon, 22 Jan 2024 16:02:50 +0000 (19:02 +0300)]
Fix(set-last-commit-date): Use `git show -s`

9 months agoFead: Add `set-last-commit-date-changed`
Oleg Broytman [Mon, 22 Jan 2024 14:41:31 +0000 (17:41 +0300)]
Fead: Add `set-last-commit-date-changed`

9 months agoRename: `set-last-commit-date` -> `set-last-commit-date-committed`
Oleg Broytman [Mon, 22 Jan 2024 14:39:39 +0000 (17:39 +0300)]
Rename: `set-last-commit-date` -> `set-last-commit-date-committed`

9 months agoFeat: Add scripts to push, compile to byte code, set date
Oleg Broytman [Mon, 22 Jan 2024 08:23:50 +0000 (11:23 +0300)]
Feat: Add scripts to push, compile to byte code, set date

9 months agoFeat(git-open): Open browser window in private mode
Oleg Broytman [Mon, 22 Jan 2024 08:19:57 +0000 (11:19 +0300)]
Feat(git-open): Open browser window in private mode

10 months agoFeat: Delete a repository
Oleg Broytman [Sun, 24 Dec 2023 09:57:30 +0000 (12:57 +0300)]
Feat: Delete a repository

Mostly for deleting it from `locate-all.list`.

11 months agoFeat(update-remotes): Force-push branches to `web`
Oleg Broytman [Sun, 17 Dec 2023 12:45:21 +0000 (15:45 +0300)]
Feat(update-remotes): Force-push branches to `web`

Always force-push `master` and additional branches to `web`.

11 months agoFeat(update-remotes): Push additional branches to `web`
Oleg Broytman [Thu, 14 Dec 2023 20:05:57 +0000 (23:05 +0300)]
Feat(update-remotes): Push additional branches to `web`

11 months agoFeat(update-remotes): Fetch additional branches if there're any
Oleg Broytman [Thu, 14 Dec 2023 20:05:03 +0000 (23:05 +0300)]
Feat(update-remotes): Fetch additional branches if there're any

11 months agoFeat(update-remotes): Reset `master` if fast-forward failed
Oleg Broytman [Thu, 14 Dec 2023 20:04:17 +0000 (23:04 +0300)]
Feat(update-remotes): Reset `master` if fast-forward failed

11 months agoAdd a script to resolve rewritten URL
Oleg Broytman [Wed, 29 Nov 2023 15:18:03 +0000 (18:18 +0300)]
Add a script to resolve rewritten URL

17 months agoDocs(svn/svn2git): Fix URL
Oleg Broytman [Mon, 29 May 2023 10:24:03 +0000 (13:24 +0300)]
Docs(svn/svn2git): Fix URL

19 months agoFix(submodules/remove): Fix subcommand
Oleg Broytman [Sat, 8 Apr 2023 15:45:50 +0000 (18:45 +0300)]
Fix(submodules/remove): Fix subcommand

19 months agoFeat(submodules/remove): Improve error message
Oleg Broytman [Sat, 8 Apr 2023 15:45:28 +0000 (18:45 +0300)]
Feat(submodules/remove): Improve error message

20 months agoFeat(submodules/remove): Find `.git` dir
Oleg Broytman [Sun, 5 Mar 2023 13:16:25 +0000 (16:16 +0300)]
Feat(submodules/remove): Find `.git` dir

In case of a submodule `.git` is a file, not a directory.
Find the `.git` dir in the superproject's `.git/`.

20 months agoFeat(submodules/remove): Improve error message
Oleg Broytman [Sun, 5 Mar 2023 13:15:42 +0000 (16:15 +0300)]
Feat(submodules/remove): Improve error message

23 months agoFeat(submodules/remove): New way to remove
Oleg Broytman [Sun, 11 Dec 2022 21:51:59 +0000 (00:51 +0300)]
Feat(submodules/remove): New way to remove

23 months agoFeat(submodules): Add a script to remove a submodule
Oleg Broytman [Sun, 11 Dec 2022 21:44:16 +0000 (00:44 +0300)]
Feat(submodules): Add a script to remove a submodule

2 years agoFeat(submodules/diff-name-only): Use `rev-parse`
Oleg Broytman [Tue, 4 Oct 2022 21:16:59 +0000 (00:16 +0300)]
Feat(submodules/diff-name-only): Use `rev-parse`

Use `git rev-parse commit:submodule_path` instead of
`git ls-tree commit submodule_path | awk "{print $3}"`.

2 years agoFeat: `sharedRepo [-a|-g] [group]`
Oleg Broytman [Sat, 13 Aug 2022 12:45:36 +0000 (15:45 +0300)]
Feat: `sharedRepo [-a|-g] [group]`

2 years agoAdd a script `sharedRepoGroup`
Oleg Broytman [Tue, 9 Aug 2022 23:40:06 +0000 (02:40 +0300)]
Add a script `sharedRepoGroup`

3 years agoFix(reinit-repos): Run `git init --bare` to reinit bare repos
Oleg Broytman [Sat, 9 Oct 2021 12:28:08 +0000 (15:28 +0300)]
Fix(reinit-repos): Run `git init --bare` to reinit bare repos

3 years agoFeat(submodules/diff-name-only): Run recursively
Oleg Broytman [Fri, 28 May 2021 21:56:56 +0000 (00:56 +0300)]
Feat(submodules/diff-name-only): Run recursively

3 years agoFeat(submodules/diff-name-only): Use pager
Oleg Broytman [Fri, 28 May 2021 09:36:20 +0000 (12:36 +0300)]
Feat(submodules/diff-name-only): Use pager

Pipe to pager if stdout is a terminal
or to `cat -` to allow redirection.

3 years agoRefactor(submodules/diff-name-only): Remove excessive backslashes
Oleg Broytman [Fri, 28 May 2021 09:28:05 +0000 (12:28 +0300)]
Refactor(submodules/diff-name-only): Remove excessive backslashes

Use apostrophes for the internal script.
Export variables from the external shell
to be available in the internal script.

3 years agoAdd script `submodules/diff-name-only`
Oleg Broytman [Thu, 27 May 2021 17:34:23 +0000 (20:34 +0300)]
Add script `submodules/diff-name-only`

3 years agoRename/move `git-submodules-add` -> `submodules/add`
Oleg Broytman [Thu, 27 May 2021 17:32:59 +0000 (20:32 +0300)]
Rename/move `git-submodules-add` -> `submodules/add`

3 years agoAdd script `speedup`
Oleg Broytman [Wed, 12 May 2021 08:11:41 +0000 (11:11 +0300)]
Add script `speedup`

3 years agoFeat(pull-usrlocalsrc): Pull branch `main`, merge into local `master`
Oleg Broytman [Fri, 16 Apr 2021 14:24:36 +0000 (17:24 +0300)]
Feat(pull-usrlocalsrc): Pull branch `main`, merge into local `master`

SJW shit.

3 years agoFeat(pull-usrlocalsrc): Use fixed remote `origin`
Oleg Broytman [Sun, 28 Mar 2021 07:06:36 +0000 (10:06 +0300)]
Feat(pull-usrlocalsrc): Use fixed remote `origin`

If there is no `upstream` the only remote is `origin`.

3 years agoFeat(ls-not-pushed): Improve regular expression
Oleg Broytman [Mon, 22 Feb 2021 11:12:52 +0000 (14:12 +0300)]
Feat(ls-not-pushed): Improve regular expression

Lower probability of false positives.

3 years agoFix: `ls-not-packed` -> `ls-not-packed-repos`
Oleg Broytman [Fri, 1 Jan 2021 19:39:37 +0000 (22:39 +0300)]
Fix: `ls-not-packed` -> `ls-not-packed-repos`

3 years agoRefactor(ls-not-pushed): Show behind/ahead counters
Oleg Broytman [Mon, 28 Dec 2020 13:01:37 +0000 (16:01 +0300)]
Refactor(ls-not-pushed): Show behind/ahead counters

3 years agoRefactor(ls-not-pushed): Split into `-recursive` and `-repos`
Oleg Broytman [Mon, 28 Dec 2020 12:54:34 +0000 (15:54 +0300)]
Refactor(ls-not-pushed): Split into `-recursive` and `-repos`

3 years agoRefactor(ls-not-packed): Split into `-recursive` and `-repos`
Oleg Broytman [Mon, 28 Dec 2020 12:49:08 +0000 (15:49 +0300)]
Refactor(ls-not-packed): Split into `-recursive` and `-repos`

3 years agoFix(fsck-repos): Add missing quote
Oleg Broytman [Fri, 27 Nov 2020 13:16:06 +0000 (16:16 +0300)]
Fix(fsck-repos): Add missing quote

4 years agoAdd `copy-scripts/`: Copy this repo to a remote host
Oleg Broytman [Sat, 15 Aug 2020 13:32:04 +0000 (16:32 +0300)]
Add `copy-scripts/`: Copy this repo to a remote host

Copy git-scripts to an ssh-accessible remote host.

4 years agoFeat(hooks/post-update): Push back to `origin`
Oleg Broytman [Fri, 14 Aug 2020 15:15:09 +0000 (18:15 +0300)]
Feat(hooks/post-update): Push back to `origin`

4 years agoFeat(hooks/post-update): Add remote `origin` if not exists
Oleg Broytman [Fri, 14 Aug 2020 15:13:11 +0000 (18:13 +0300)]
Feat(hooks/post-update): Add remote `origin` if not exists

4 years agoFeat(fix-detached-head): Replace `branch -r` by `for-each-ref`
Oleg Broytman [Tue, 4 Aug 2020 15:22:40 +0000 (18:22 +0300)]
Feat(fix-detached-head): Replace `branch -r` by `for-each-ref`

Use `git for-each-ref` instead of `git branch -r | sed`.

4 years agoFeat(fix-detached-head): Get branch from superproject
Oleg Broytman [Tue, 4 Aug 2020 15:20:27 +0000 (18:20 +0300)]
Feat(fix-detached-head): Get branch from superproject

Get the branch from the superproject's `.gitmodules`.

4 years agoFeat: Fix detached `HEAD`
Oleg Broytman [Mon, 3 Aug 2020 15:04:52 +0000 (18:04 +0300)]
Feat: Fix detached `HEAD`

Fix detached `HEAD` by checking out the branch
(local or remote, if one exists) that points to the same commit.

4 years agoFeat: Check recursively for detached `HEAD`
Oleg Broytman [Sun, 2 Aug 2020 22:52:02 +0000 (01:52 +0300)]
Feat: Check recursively for detached `HEAD`

4 years agoFeat(sparse-clone): Add options parser
Oleg Broytman [Tue, 12 May 2020 12:07:01 +0000 (15:07 +0300)]
Feat(sparse-clone): Add options parser

Parametrize branch (default is master)
and local directory (default is the name of the remote repo).

4 years agoFeat(sparse-clone): Validate parameters
Oleg Broytman [Tue, 12 May 2020 10:52:27 +0000 (13:52 +0300)]
Feat(sparse-clone): Validate parameters

4 years agoGet local directory name from origin
Oleg Broytman [Tue, 12 May 2020 10:49:31 +0000 (13:49 +0300)]
Get local directory name from origin

4 years agoAdd `run-bare-repos`: run a command over all bare repositories
Oleg Broytman [Fri, 17 Apr 2020 15:41:21 +0000 (18:41 +0300)]
Add `run-bare-repos`: run a command over all bare repositories

4 years agoFeat(reinit): Split `reinit-all`
Oleg Broytman [Fri, 17 Apr 2020 11:32:15 +0000 (14:32 +0300)]
Feat(reinit): Split `reinit-all`

4 years agoAdd `sparse-clone`
Oleg Broytman [Fri, 17 Apr 2020 11:19:19 +0000 (14:19 +0300)]
Add `sparse-clone`

4 years agoFix(set-commit-date.py): Skip symlinks
Oleg Broytman [Sun, 2 Feb 2020 15:43:33 +0000 (18:43 +0300)]
Fix(set-commit-date.py): Skip symlinks

An earlier symlink to a file should not override the later file.

4 years agoFeat(svn): Add script `rdump-load`
Oleg Broytman [Sat, 1 Feb 2020 09:26:38 +0000 (12:26 +0300)]
Feat(svn): Add script `rdump-load`

Dump remote Subversion repository and load it into a local one
to speed up following `git-svn` operations.

4 years agoFix(svn/get-authors): Append to existing `authors.txt`
Oleg Broytman [Sat, 1 Feb 2020 07:31:45 +0000 (10:31 +0300)]
Fix(svn/get-authors): Append to existing `authors.txt`

4 years agoFeat(svn/get-authors): Add perl-based parser
Oleg Broytman [Sat, 1 Feb 2020 07:31:45 +0000 (10:31 +0300)]
Feat(svn/get-authors): Add perl-based parser

4 years agoFix(svn/get-authors): Pass URL
Oleg Broytman [Sat, 1 Feb 2020 07:31:45 +0000 (10:31 +0300)]
Fix(svn/get-authors): Pass URL

4 years agoFeat(locate-all): Use `sort -u` instead of `sort | uniq`
Oleg Broytman [Mon, 23 Dec 2019 02:31:26 +0000 (05:31 +0300)]
Feat(locate-all): Use `sort -u` instead of `sort | uniq`

4 years agoDoc(locate-all): Add comments
Oleg Broytman [Mon, 23 Dec 2019 02:30:31 +0000 (05:30 +0300)]
Doc(locate-all): Add comments

4 years agoRefactor(locate-all): Reorder excluded directories
Oleg Broytman [Mon, 23 Dec 2019 02:28:00 +0000 (05:28 +0300)]
Refactor(locate-all): Reorder excluded directories

4 years agoFeat(set-commit-date): Allow to choose between author and committer date
Oleg Broytman [Fri, 20 Dec 2019 18:19:51 +0000 (21:19 +0300)]
Feat(set-commit-date): Allow to choose between author and committer date

Default is committer date.

4 years agoFeat(locate-all): Exclude submodules
Oleg Broytman [Wed, 18 Dec 2019 01:53:31 +0000 (04:53 +0300)]
Feat(locate-all): Exclude submodules

Check submodules by files `.git`.

5 years agoRefactor: Use `$#` to check parameters
Oleg Broytman [Thu, 15 Aug 2019 18:57:11 +0000 (21:57 +0300)]
Refactor: Use `$#` to check parameters

5 years agoRefactor(set-commit-date.py): Combine 2 conditions
Oleg Broytman [Sat, 3 Aug 2019 11:22:42 +0000 (14:22 +0300)]
Refactor(set-commit-date.py): Combine 2 conditions

5 years agoFix(set-commit-date.py): Consider deleted files
Oleg Broytman [Fri, 2 Aug 2019 18:10:42 +0000 (21:10 +0300)]
Fix(set-commit-date.py): Consider deleted files

If the file was deleted and later readded - ignore deletion.
Otherwise ignore deleted files.

5 years agoAdd git-submodules-add
Oleg Broytman [Fri, 7 Jun 2019 09:49:46 +0000 (12:49 +0300)]
Add git-submodules-add

Run `git submodule add` on submodules in `.gitmodules`
if said `.gitmodules` has been simply copied into the project.

5 years agoFix(set-commit-date-repos): Remove excessive apostrophe
Oleg Broytman [Fri, 31 May 2019 15:57:50 +0000 (18:57 +0300)]
Fix(set-commit-date-repos): Remove excessive apostrophe

5 years agoFeat(git-open): Replace scp URLs with https
Oleg Broytman [Thu, 14 Mar 2019 15:08:44 +0000 (18:08 +0300)]
Feat(git-open): Replace scp URLs with https

5 years agoFeat(get-authors): Add an alternative implementation
Oleg Broytman [Tue, 12 Mar 2019 15:46:32 +0000 (18:46 +0300)]
Feat(get-authors): Add an alternative implementation

5 years agoFix: Remove excessive redirection and exit code check
Oleg Broytman [Fri, 1 Mar 2019 22:50:34 +0000 (01:50 +0300)]
Fix: Remove excessive redirection and exit code check

5 years agoFix(ls-no-description): Print cwd (`$g` can be just '.')
Oleg Broytman [Thu, 28 Feb 2019 16:34:47 +0000 (19:34 +0300)]
Fix(ls-no-description): Print cwd (`$g` can be just '.')

5 years agoRefactoring: Factor out run-repos and run-workdirs
Oleg Broytman [Thu, 28 Feb 2019 12:56:47 +0000 (15:56 +0300)]
Refactoring: Factor out run-repos and run-workdirs

5 years agoRemove excessive `echo`; simplify long commands
Oleg Broytman [Thu, 28 Feb 2019 12:27:57 +0000 (15:27 +0300)]
Remove excessive `echo`; simplify long commands

5 years agoFeat: Split scripts into 3: run in one repo, recursive, in all
Oleg Broytman [Thu, 28 Feb 2019 00:53:03 +0000 (03:53 +0300)]
Feat: Split scripts into 3: run in one repo, recursive, in all

5 years agoRefactor: Factor out run-recursive
Oleg Broytman [Wed, 27 Feb 2019 23:24:11 +0000 (02:24 +0300)]
Refactor: Factor out run-recursive

5 years agoAdd scripts to run fsck of all repositories
Oleg Broytman [Fri, 18 Jan 2019 03:12:29 +0000 (06:12 +0300)]
Add scripts to run fsck of all repositories

5 years agoRename all-status -> status-all
Oleg Broytman [Fri, 18 Jan 2019 03:12:06 +0000 (06:12 +0300)]
Rename all-status -> status-all

5 years agoFeat(set-commit-date.py): chdir to git root
Oleg Broytman [Tue, 27 Nov 2018 19:27:09 +0000 (22:27 +0300)]
Feat(set-commit-date.py): chdir to git root

Necessary because `git --log --name-only` produces paths relative to
the root.

6 years agoAdd post-update to update git-scripts after pushing to git-scripts.git
Oleg Broytman [Fri, 28 Sep 2018 15:05:54 +0000 (18:05 +0300)]
Add post-update to update git-scripts after pushing to git-scripts.git

6 years agoI stopped using `git-remote-hg`
Oleg Broytman [Tue, 21 Aug 2018 06:24:05 +0000 (09:24 +0300)]
I stopped using `git-remote-hg`

All repositories migrated long ago.

6 years agoRefactor(set-commit-date.py): Use git_log.stdout as an iterator
Oleg Broytman [Fri, 27 Apr 2018 21:41:01 +0000 (00:41 +0300)]
Refactor(set-commit-date.py): Use git_log.stdout as an iterator

6 years agoFeat: Run set-commit-date-recursive on clone/fork
Oleg Broytman [Thu, 26 Apr 2018 23:44:33 +0000 (02:44 +0300)]
Feat: Run set-commit-date-recursive on clone/fork

6 years agoFeat(git-status.sh): Use `git rev-parse` to find git dir
Oleg Broytman [Fri, 13 Apr 2018 16:37:27 +0000 (19:37 +0300)]
Feat(git-status.sh): Use `git rev-parse` to find git dir

6 years agoFeat: Limit memory for gc/repack
Oleg Broytman [Thu, 15 Mar 2018 02:27:52 +0000 (05:27 +0300)]
Feat: Limit memory for gc/repack

Add a script to set config to limit memory for gc/repack
to avoid out of memory errors.

6 years agoFix: No need to run `git repack`
Oleg Broytman [Thu, 15 Mar 2018 02:20:56 +0000 (05:20 +0300)]
Fix: No need to run `git repack`

`git gc --aggressive` runs `git repack` -A -d -l -f.

6 years agoFix(.gitignore): locate-all.list can only be in the root
Oleg Broytman [Tue, 13 Mar 2018 22:41:07 +0000 (01:41 +0300)]
Fix(.gitignore): locate-all.list can only be in the root

6 years agoFeat(ls-assumed): Recognize files with skip-worktree bit
Oleg Broytman [Fri, 9 Mar 2018 22:07:28 +0000 (01:07 +0300)]
Feat(ls-assumed): Recognize files with skip-worktree bit

Recognize files with `git update-index --skip-worktree`
in addition to `--assume-unchanged`.

6 years agoFeat: Script to fix .git/config executable bits
Oleg Broytman [Fri, 2 Mar 2018 07:59:04 +0000 (10:59 +0300)]
Feat: Script to fix .git/config executable bits

6 years agoFeat: Add a script to update .git/hooks/*.sample
Oleg Broytman [Fri, 2 Mar 2018 07:58:15 +0000 (10:58 +0300)]
Feat: Add a script to update .git/hooks/*.sample

6 years agoFix: Run chmod only after clone
Oleg Broytman [Fri, 2 Mar 2018 07:53:32 +0000 (10:53 +0300)]
Fix: Run chmod only after clone

6 years agoFeat(submodule): Test .gitmodules before running `git submodule`
Oleg Broytman [Mon, 26 Feb 2018 19:48:29 +0000 (22:48 +0300)]
Feat(submodule): Test .gitmodules  before running `git submodule`

6 years agoFeat(status): Copy index and set GIT_INDEX_FILE to avoid touching .git
Oleg Broytman [Mon, 26 Feb 2018 19:05:00 +0000 (22:05 +0300)]
Feat(status): Copy index and set GIT_INDEX_FILE to avoid touching .git

6 years agoAdd gc-expire scripts
Oleg Broytman [Sat, 3 Feb 2018 03:30:05 +0000 (06:30 +0300)]
Add gc-expire scripts