]> git.phdru.name Git - git-scripts.git/log
git-scripts.git
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

6 years agoRename gc-and-repack -> gc-repack
Oleg Broytman [Sat, 3 Feb 2018 03:26:44 +0000 (06:26 +0300)]
Rename gc-and-repack -> gc-repack

6 years agoFeat: Split git-open into git-open-remote
Oleg Broytman [Wed, 13 Dec 2017 19:35:17 +0000 (22:35 +0300)]
Feat: Split git-open into git-open-remote

git-open can now open any config key.
git-open-remote opens remotes URLs.

6 years agoFeat(locate-all): Case-sensitive sort
Oleg Broytman [Wed, 13 Dec 2017 12:15:32 +0000 (15:15 +0300)]
Feat(locate-all): Case-sensitive sort

6 years agoFix(fork): Add remote origin if it doesn't exist in an existing repo
Oleg Broytman [Fri, 27 Oct 2017 00:50:13 +0000 (03:50 +0300)]
Fix(fork): Add remote origin if it doesn't exist in an existing repo

6 years agoFix(fork): Do not add the existing repo to locate-all.list
Oleg Broytman [Fri, 27 Oct 2017 00:48:17 +0000 (03:48 +0300)]
Fix(fork): Do not add the existing repo to locate-all.list

6 years agoFeat: Add `clone` script
Oleg Broytman [Wed, 11 Oct 2017 21:56:56 +0000 (00:56 +0300)]
Feat: Add `clone` script

6 years agoFeat(fork): Check .git in the current directory
Oleg Broytman [Wed, 11 Oct 2017 21:47:50 +0000 (00:47 +0300)]
Feat(fork): Check .git in the current directory

6 years agoFeat(git-open): Get remote from the current branch
Oleg Broytman [Sun, 20 Aug 2017 21:01:32 +0000 (00:01 +0300)]
Feat(git-open): Get remote from the current branch

6 years agoMerge fork-existing into fork
Oleg Broytman [Sat, 19 Aug 2017 19:08:33 +0000 (22:08 +0300)]
Merge fork-existing into fork

6 years agoAdd fork-existing
Oleg Broytman [Tue, 30 May 2017 14:23:23 +0000 (17:23 +0300)]
Add fork-existing

6 years agoRemove scripts for manipulating projects
Oleg Broytman [Sat, 29 Apr 2017 22:26:33 +0000 (01:26 +0300)]
Remove scripts for manipulating projects

Moved to cookiecutter repo.

7 years agoRename update -> update-remotes
Oleg Broytman [Mon, 17 Apr 2017 19:57:15 +0000 (22:57 +0300)]
Rename update -> update-remotes

7 years agoFix publish2web: put the real web directory to locate-all.list
Oleg Broytman [Sat, 15 Apr 2017 23:17:41 +0000 (02:17 +0300)]
Fix publish2web: put the real web directory to locate-all.list

`pwd` was ~/tmp there.

7 years agoAdd cloned repository to the list of repos to process
Oleg Broytman [Tue, 11 Apr 2017 20:16:47 +0000 (23:16 +0300)]
Add cloned repository to the list of repos to process

7 years agoAdapt set-commit-date.py to Python 3: turn on universal_newlines
Oleg Broytman [Sun, 9 Apr 2017 01:21:40 +0000 (04:21 +0300)]
Adapt set-commit-date.py to Python 3: turn on universal_newlines

7 years agoUse `git branch --verbose` instead of `git status --branch`
Oleg Broytman [Sun, 19 Mar 2017 18:44:14 +0000 (21:44 +0300)]
Use `git branch --verbose` instead of `git status --branch`

Remove ls-not-pushed-carefully - it's no longer needed
as ls-not-pushed doesn't call `git status` anymore.

7 years agoIgnore archive/cheetah3 - it's a mirror of current/cheetah3
Oleg Broytman [Thu, 16 Mar 2017 23:28:40 +0000 (02:28 +0300)]
Ignore archive/cheetah3 - it's a mirror of current/cheetah3

7 years agoFix recursive gc/repack/fsck
Oleg Broytman [Sat, 11 Mar 2017 19:03:36 +0000 (22:03 +0300)]
Fix recursive gc/repack/fsck

7 years agoTest dirty status or not pushed state
Oleg Broytman [Mon, 9 Jan 2017 17:06:51 +0000 (20:06 +0300)]
Test dirty status or not pushed state

7 years agoTest status only in repos with worktrees
Oleg Broytman [Mon, 9 Jan 2017 17:03:34 +0000 (20:03 +0300)]
Test status only in repos with worktrees

7 years agoFix base directory name: do not remove .git suffix
Oleg Broytman [Mon, 9 Jan 2017 16:57:39 +0000 (19:57 +0300)]
Fix base directory name: do not remove .git suffix

7 years agoTest grep error code, not output
Oleg Broytman [Mon, 9 Jan 2017 16:31:10 +0000 (19:31 +0300)]
Test grep error code, not output

7 years agoAdd `fork` script to setup upstream and origin remotes
Oleg Broytman [Tue, 20 Dec 2016 19:15:11 +0000 (22:15 +0300)]
Add `fork` script to setup upstream and origin remotes

7 years agoUse xargs -I%
Oleg Broytman [Fri, 16 Dec 2016 18:36:04 +0000 (21:36 +0300)]
Use xargs -I%

7 years agoRename source -> upstream
Oleg Broytman [Sun, 11 Dec 2016 13:06:04 +0000 (16:06 +0300)]
Rename source -> upstream

7 years agoDo not pack submodules in bare repos
Oleg Broytman [Fri, 11 Nov 2016 15:00:49 +0000 (18:00 +0300)]
Do not pack submodules in bare repos

7 years agoAdd a script to list repos with assumed unchanged files
Oleg Broytman [Wed, 9 Nov 2016 17:11:19 +0000 (20:11 +0300)]
Add a script to list repos with assumed unchanged files

7 years agoRun git gc/repack/fsck recursively (on submodules)
Oleg Broytman [Sun, 6 Nov 2016 13:03:21 +0000 (16:03 +0300)]
Run git gc/repack/fsck recursively (on submodules)

7 years agoUse `git count-objects` instead of `find`
Oleg Broytman [Sun, 6 Nov 2016 11:47:46 +0000 (14:47 +0300)]
Use `git count-objects` instead of `find`

Count loose objects in submodules.

7 years agopull-usrlocalsrc: pull from source, push to origin
Oleg Broytman [Wed, 2 Nov 2016 19:53:04 +0000 (22:53 +0300)]
pull-usrlocalsrc: pull from source, push to origin

7 years agopull-usrlocalsrc: add git-remote-hg to PATH
Oleg Broytman [Wed, 2 Nov 2016 19:52:23 +0000 (22:52 +0300)]
pull-usrlocalsrc: add git-remote-hg to PATH

7 years agoAdd all-status all-status-carefully
Oleg Broytman [Fri, 14 Oct 2016 22:15:22 +0000 (01:15 +0300)]
Add all-status all-status-carefully

7 years agoCreate tmp dir in advance; set trap to remove it
Oleg Broytman [Fri, 14 Oct 2016 22:12:31 +0000 (01:12 +0300)]
Create tmp dir in advance; set trap to remove it

7 years agoFix `while read`; report non-existing directories
Oleg Broytman [Fri, 14 Oct 2016 22:11:22 +0000 (01:11 +0300)]
Fix `while read`; report non-existing directories

7 years agoMinor refactoring: first echo then slow rsync
Oleg Broytman [Fri, 14 Oct 2016 21:18:46 +0000 (00:18 +0300)]
Minor refactoring: first echo then slow rsync

Rename LSTMP -> STMP (it's not a tmp for ls).

7 years agopull-usrlocalsrc: pull only master from all remotes
Oleg Broytman [Fri, 7 Oct 2016 13:09:02 +0000 (16:09 +0300)]
pull-usrlocalsrc: pull only master from all remotes

7 years agoFix `while read`
Oleg Broytman [Fri, 7 Oct 2016 13:08:18 +0000 (16:08 +0300)]
Fix `while read`

7 years agoExclude .tox/ virtual environments when compiling byte code
Oleg Broytman [Sat, 24 Sep 2016 18:06:15 +0000 (21:06 +0300)]
Exclude .tox/ virtual environments when compiling byte code

7 years agoUse `git var GIT_EDITOR` to call editor
Oleg Broytman [Thu, 4 Aug 2016 23:44:29 +0000 (02:44 +0300)]
Use `git var GIT_EDITOR` to call editor

`git var GIT_EDITOR` is better than ${VISUAL:-${EDITOR:-vi}} because
it takes into account all variables: GIT_EDITOR, VISUAL and EDITOR,
and falls back to the platform's default.

7 years agoFix copy/paste bug
Oleg Broytman [Wed, 3 Aug 2016 12:29:25 +0000 (15:29 +0300)]
Fix copy/paste bug

7 years agoExclude empty "others" directories
Oleg Broytman [Wed, 3 Aug 2016 12:27:04 +0000 (15:27 +0300)]
Exclude empty "others" directories

7 years agoUse git status --branch --short
Oleg Broytman [Wed, 3 Aug 2016 12:18:48 +0000 (15:18 +0300)]
Use git status --branch --short

7 years agoUse new ls-dirty
Oleg Broytman [Wed, 3 Aug 2016 12:14:50 +0000 (15:14 +0300)]
Use new ls-dirty

This makes status-dirty-carefully much faster.

7 years agoUse git ls-files instead of status to avoid touching .git/
Oleg Broytman [Wed, 3 Aug 2016 12:14:10 +0000 (15:14 +0300)]
Use git ls-files instead of status to avoid touching .git/

7 years agoRename ls-dirty-carefully to ls-status-carefully
Oleg Broytman [Wed, 3 Aug 2016 12:12:36 +0000 (15:12 +0300)]
Rename ls-dirty-carefully to ls-status-carefully

Change variable $PROG_DIR => $prog_dir. Use long option.

7 years agoUse long option
Oleg Broytman [Wed, 3 Aug 2016 12:10:30 +0000 (15:10 +0300)]
Use long option

7 years agoChange local variable $PROG_DIR => $prog_dir
Oleg Broytman [Wed, 3 Aug 2016 12:09:39 +0000 (15:09 +0300)]
Change local variable $PROG_DIR => $prog_dir

7 years agoDo not show untracked files in git status
Oleg Broytman [Wed, 3 Aug 2016 12:06:10 +0000 (15:06 +0300)]
Do not show untracked files in git status

7 years agoList not pushed repositories carefully
Oleg Broytman [Tue, 2 Aug 2016 19:55:01 +0000 (22:55 +0300)]
List not pushed repositories carefully

Get status without touching the repo (by using a temporary copy).

7 years agoList repositories not pushed to origin
Oleg Broytman [Tue, 2 Aug 2016 19:55:01 +0000 (22:55 +0300)]
List repositories not pushed to origin

7 years agolocate-all: filter off excessive repos
Oleg Broytman [Mon, 25 Jul 2016 14:16:29 +0000 (17:16 +0300)]
locate-all: filter off excessive repos

7 years agoFix setting upstream branch
Oleg Broytman [Sat, 16 Jul 2016 23:36:17 +0000 (02:36 +0300)]
Fix setting upstream branch

git branch --set-upstream-to requires that remote-tracking branch
web/master already exists. Use git push -u instead.

7 years agoUse web.browser and browser.cmd from git config to get browser
Oleg Broytman [Thu, 7 Jul 2016 15:36:54 +0000 (18:36 +0300)]
Use web.browser and browser.cmd from git config to get browser

7 years agoAdd git-open - a script to open a remote's URL in a browser
Oleg Broytman [Thu, 7 Jul 2016 15:29:17 +0000 (18:29 +0300)]
Add git-open - a script to open a remote's URL in a browser

7 years agoAdd a script to list repos with stashed files
Oleg Broytman [Fri, 10 Jun 2016 12:02:55 +0000 (15:02 +0300)]
Add a script to list repos with stashed files

7 years agoChange output format
Oleg Broytman [Fri, 10 Jun 2016 11:59:28 +0000 (14:59 +0300)]
Change output format

Separators "-----" are required if there is repository-related output
after them, but do not required if the output is repo name only.

7 years agoSet upstream to web/master on publishing to web
Oleg Broytman [Sun, 5 Jun 2016 14:03:25 +0000 (17:03 +0300)]
Set upstream to web/master on publishing to web

7 years agoAdd scripts to list/show remotes
Oleg Broytman [Sun, 5 Jun 2016 11:14:26 +0000 (14:14 +0300)]
Add scripts to list/show remotes

7 years agoAdd post-checkout hook that compiles python files
Oleg Broytman [Sun, 5 Jun 2016 11:13:39 +0000 (14:13 +0300)]
Add post-checkout hook that compiles python files

7 years agoAdd a script to list all branches in all repos
Oleg Broytman [Mon, 30 May 2016 04:17:57 +0000 (07:17 +0300)]
Add a script to list all branches in all repos

7 years agoMinor refactoring
Oleg Broytman [Thu, 26 May 2016 07:57:32 +0000 (10:57 +0300)]
Minor refactoring

7 years agoRefine error messages
Oleg Broytman [Thu, 26 May 2016 07:56:46 +0000 (10:56 +0300)]
Refine error messages

8 years agoList repositories with "Unnamed" description and edit their descriptions
Oleg Broytman [Fri, 15 Apr 2016 15:20:20 +0000 (18:20 +0300)]
List repositories with "Unnamed" description and edit their descriptions

8 years agoMinor refactoring
Oleg Broytman [Tue, 12 Apr 2016 10:42:12 +0000 (13:42 +0300)]
Minor refactoring

8 years agoFix: delete old files
Oleg Broytman [Sun, 10 Apr 2016 03:58:41 +0000 (06:58 +0300)]
Fix: delete old files

8 years agoBetter comments
Oleg Broytman [Wed, 30 Mar 2016 22:01:27 +0000 (01:01 +0300)]
Better comments

8 years agoAdd set-commit-date-not-packed
Oleg Broytman [Wed, 30 Mar 2016 21:56:55 +0000 (00:56 +0300)]
Add set-commit-date-not-packed

Call set-commit-date-recursive on all not-packed repositories.

8 years agoAdd set-commit-date.py
Oleg Broytman [Sun, 20 Mar 2016 16:42:46 +0000 (19:42 +0300)]
Add set-commit-date.py

Find commit date/time for every commit, list files in the commit
and set the file's modification time to the date/time of the latest commit.

This is much faster than set-commit-date for big repositories.

8 years agoset-commit-date-repos: fix docstring
Oleg Broytman [Sun, 20 Mar 2016 16:41:05 +0000 (19:41 +0300)]
set-commit-date-repos: fix docstring

8 years agoSplit set-commit-date-repos into set-commit-date-recursive
Oleg Broytman [Wed, 24 Feb 2016 19:37:13 +0000 (22:37 +0300)]
Split set-commit-date-repos into set-commit-date-recursive

8 years agoAdd post-merge and post-rewrite hooks
Oleg Broytman [Tue, 9 Feb 2016 18:48:15 +0000 (21:48 +0300)]
Add post-merge and post-rewrite hooks

These hooks compile python files to byte code.

8 years agoCarefully list dirty repos and show their status
Oleg Broytman [Wed, 27 Jan 2016 21:53:48 +0000 (00:53 +0300)]
Carefully list dirty repos and show their status

Copy every repo to a temp directory; this is very slow but prevents
``git status`` from touching real files.

8 years agoNew algorithm to find non-packed repos
Oleg Broytman [Tue, 7 Jul 2015 14:32:41 +0000 (17:32 +0300)]
New algorithm to find non-packed repos

Consider repos with files in refs and rerere cache not packed.

8 years agoPush master explicitly
Oleg Broytman [Mon, 6 Jul 2015 15:51:35 +0000 (18:51 +0300)]
Push master explicitly

8 years agoFix syntax
Oleg Broytman [Mon, 6 Jul 2015 15:51:19 +0000 (18:51 +0300)]
Fix syntax

8 years agoDo not mirror
Oleg Broytman [Mon, 6 Jul 2015 15:47:43 +0000 (18:47 +0300)]
Do not mirror

8 years agoRun update server info after deleting a remote branch
Oleg Broytman [Sun, 5 Jul 2015 00:13:50 +0000 (03:13 +0300)]
Run update server info after deleting a remote branch

8 years agoConfigure receive.updateserverinfo instead of post-checkout hook
Oleg Broytman [Sun, 5 Jul 2015 00:07:27 +0000 (03:07 +0300)]
Configure receive.updateserverinfo instead of post-checkout hook

Run git update-server-info instead of post-checkout.

8 years agoRemove current/master branch from web mirror
Oleg Broytman [Sat, 4 Jul 2015 16:11:57 +0000 (19:11 +0300)]
Remove current/master branch from web mirror

8 years agoAdd message to the tag
Oleg Broytman [Thu, 18 Jun 2015 15:50:19 +0000 (18:50 +0300)]
Add message to the tag

8 years agoRename touch-all -> set-commit-date
Oleg Broytman [Mon, 15 Jun 2015 03:15:38 +0000 (06:15 +0300)]
Rename touch-all -> set-commit-date

8 years agoMove post-checkout hooks to hooks/post-checkout
Oleg Broytman [Mon, 15 Jun 2015 03:08:11 +0000 (06:08 +0300)]
Move post-checkout hooks to hooks/post-checkout

8 years agoIf run from $current execute $origin/update instead
Oleg Broytman [Thu, 11 Jun 2015 17:36:39 +0000 (20:36 +0300)]
If run from $current execute $origin/update instead

8 years agoAdd details about error
Oleg Broytman [Thu, 11 Jun 2015 17:33:57 +0000 (20:33 +0300)]
Add details about error

8 years agoAdd script `update'
Oleg Broytman [Fri, 5 Jun 2015 17:07:24 +0000 (20:07 +0300)]
Add script `update'

9 years agoUse `dirname $0` instead of absolute path
Oleg Broytman [Tue, 7 Apr 2015 21:20:36 +0000 (00:20 +0300)]
Use `dirname $0` instead of absolute path

9 years agoAdd touch-ALL-repos
Oleg Broytman [Thu, 26 Mar 2015 18:43:14 +0000 (21:43 +0300)]
Add touch-ALL-repos

9 years agoQuote filename
Oleg Broytman [Thu, 26 Mar 2015 18:20:21 +0000 (21:20 +0300)]
Quote filename

9 years agoEscape inner quotes
Oleg Broytman [Sat, 21 Feb 2015 16:40:13 +0000 (19:40 +0300)]
Escape inner quotes

9 years agoAdd touch-all
Oleg Broytman [Fri, 6 Feb 2015 20:39:26 +0000 (23:39 +0300)]
Add touch-all

Recursively find commit date/time for every file in the current directory
and set the file's modification time to that date/time.

9 years agoRun git gc --aggressive
Oleg Broytman [Fri, 2 Jan 2015 20:33:25 +0000 (23:33 +0300)]
Run git gc --aggressive

9 years agoChange git repack depth from 250 to 20
Oleg Broytman [Fri, 2 Jan 2015 20:31:37 +0000 (23:31 +0300)]
Change git repack depth from 250 to 20

9 years agoChange wording
Oleg Broytman [Wed, 24 Dec 2014 16:31:30 +0000 (19:31 +0300)]
Change wording

9 years agoRun 'git repack' instead of 'git gc'
Oleg Broytman [Tue, 2 Dec 2014 23:43:15 +0000 (02:43 +0300)]
Run 'git repack' instead of 'git gc'

9 years agoRestore repack-not-packed
Oleg Broytman [Thu, 27 Nov 2014 08:07:14 +0000 (11:07 +0300)]
Restore repack-not-packed

9 years agoRename repack-not-packed to gc-and-repack
Oleg Broytman [Fri, 21 Nov 2014 20:26:38 +0000 (23:26 +0300)]
Rename repack-not-packed to gc-and-repack

9 years agoAdd option -f to git repack
Oleg Broytman [Fri, 21 Nov 2014 11:44:08 +0000 (14:44 +0300)]
Add option -f to git repack

9 years agoRun git gc --aggressive before repack
Oleg Broytman [Fri, 21 Nov 2014 11:43:02 +0000 (14:43 +0300)]
Run git gc --aggressive before repack