@@ -12,7 +12,7 @@ version of git and at least Python 2.7 installed. | |||||
With [Homebrew](http://brew.sh/): | With [Homebrew](http://brew.sh/): | ||||
brew install pr0d1r2/contrib/gitup && brew link gitup | |||||
brew install gitup | |||||
## From source | ## From source | ||||
@@ -85,9 +85,9 @@ By default, gitup will fetch all remotes in a repository. Pass `--current-only` | |||||
(or `-c`) to make it only fetch the remote tracked by the current branch. | (or `-c`) to make it only fetch the remote tracked by the current branch. | ||||
gitup will _merge_ upstream branches by default unless `pull.rebase` or | gitup will _merge_ upstream branches by default unless `pull.rebase` or | ||||
`branch.<name>.rebase` is specified in git's config. Pass `--rebase` or `-r` to | |||||
make it always _rebase_ (like doing `git pull --rebase=preserve`). Pass | |||||
`--merge` or `-m` to make it always merge. | |||||
`branch.<name>.rebase` is specified in your git config. Pass `--rebase` or `-r` | |||||
to make it always _rebase_ (this is like doing `git pull --rebase=preserve`). | |||||
Pass `--merge` or `-m` to make it always merge. | |||||
For a list of all command arguments and abbreviations: | For a list of all command arguments and abbreviations: | ||||
@@ -1,7 +1,7 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | # Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | ||||
# See the LICENSE file for details. | |||||
# Released under the terms of the MIT License. See LICENSE for details. | |||||
""" | """ | ||||
gitup: the git repository updater | gitup: the git repository updater | ||||
@@ -1,7 +1,7 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | # Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | ||||
# See the LICENSE file for details. | |||||
# Released under the terms of the MIT License. See LICENSE for details. | |||||
from __future__ import print_function | from __future__ import print_function | ||||
@@ -1,7 +1,7 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | # Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | ||||
# See the LICENSE file for details. | |||||
# Released under the terms of the MIT License. See LICENSE for details. | |||||
from __future__ import print_function | from __future__ import print_function | ||||
@@ -9,7 +9,7 @@ import argparse | |||||
from colorama import init as color_init, Style | from colorama import init as color_init, Style | ||||
from . import __version__, __email__ | |||||
from . import __version__ | |||||
from .config import (get_bookmarks, add_bookmarks, delete_bookmarks, | from .config import (get_bookmarks, add_bookmarks, delete_bookmarks, | ||||
list_bookmarks) | list_bookmarks) | ||||
from .update import update_bookmarks, update_directories | from .update import update_bookmarks, update_directories | ||||
@@ -17,10 +17,11 @@ from .update import update_bookmarks, update_directories | |||||
def main(): | def main(): | ||||
"""Parse arguments and then call the appropriate function(s).""" | """Parse arguments and then call the appropriate function(s).""" | ||||
parser = argparse.ArgumentParser( | parser = argparse.ArgumentParser( | ||||
description="""Easily update multiple git repositories at once.""", | |||||
description="Easily update multiple git repositories at once.", | |||||
epilog=""" | epilog=""" | ||||
Both relative and absolute paths are accepted by all arguments. | Both relative and absolute paths are accepted by all arguments. | ||||
Questions? Comments? Email the author at {0}.""".format(__email__), | |||||
Direct bug reports and feature requests to: | |||||
https://github.com/earwig/git-repo-updater.""", | |||||
add_help=False) | add_help=False) | ||||
group_u = parser.add_argument_group("updating repositories") | group_u = parser.add_argument_group("updating repositories") | ||||
@@ -41,7 +42,7 @@ def main(): | |||||
rebase_or_merge.add_argument( | rebase_or_merge.add_argument( | ||||
'-r', '--rebase', action="store_true", help="""always rebase upstream | '-r', '--rebase', action="store_true", help="""always rebase upstream | ||||
branches instead of following `pull.rebase` and `branch.<name>.rebase` | branches instead of following `pull.rebase` and `branch.<name>.rebase` | ||||
in git config (like `git pull --rebase=preserve`)""") | |||||
in git config (behaves like `git pull --rebase=preserve`)""") | |||||
rebase_or_merge.add_argument( | rebase_or_merge.add_argument( | ||||
'-m', '--merge', action="store_true", help="""like --rebase, but merge | '-m', '--merge', action="store_true", help="""like --rebase, but merge | ||||
instead""") | instead""") | ||||
@@ -59,7 +60,7 @@ def main(): | |||||
'-h', '--help', action="help", help="show this help message and exit") | '-h', '--help', action="help", help="show this help message and exit") | ||||
group_m.add_argument( | group_m.add_argument( | ||||
'-v', '--version', action="version", | '-v', '--version', action="version", | ||||
version="gitup version " + __version__) | |||||
version="gitup " + __version__) | |||||
color_init(autoreset=True) | color_init(autoreset=True) | ||||
args = parser.parse_args() | args = parser.parse_args() | ||||
@@ -1,7 +1,7 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | # Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | ||||
# See the LICENSE file for details. | |||||
# Released under the terms of the MIT License. See LICENSE for details. | |||||
from __future__ import print_function | from __future__ import print_function | ||||
@@ -1,7 +1,7 @@ | |||||
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# | # | ||||
# Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | # Copyright (C) 2011-2015 Ben Kurtovic <ben.kurtovic@gmail.com> | ||||
# See the LICENSE file for details. | |||||
# Released under the terms of the MIT License. See LICENSE for details. | |||||
import sys | import sys | ||||
@@ -23,7 +23,7 @@ setup( | |||||
version = __version__, | version = __version__, | ||||
author = "Ben Kurtovic", | author = "Ben Kurtovic", | ||||
author_email = "ben.kurtovic@gmail.com", | author_email = "ben.kurtovic@gmail.com", | ||||
description = "Easily pull to multiple git repositories at once.", | |||||
description = "Easily pull to multiple git repositories at once", | |||||
long_description = long_desc, | long_description = long_desc, | ||||
license = "MIT License", | license = "MIT License", | ||||
keywords = "git repository pull update", | keywords = "git repository pull update", | ||||