Skip to content

Commit

Permalink
release 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zlj-zz committed Sep 28, 2021
1 parent f400405 commit f5f8bc8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 21 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Changelog of pigit
^^^^^^^^^^^^^^^^^^^^^^^^

v1.3.1 (2021-09-28)
----------
- Add new git short command (submodule).
- Add new config option.
- Add table class.
- Improve code logic and format.

v1.3.0 (2021-09-09)
----------
- Not continue support Python2.
Expand Down
34 changes: 17 additions & 17 deletions docs/pigit.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#? Config file for pigit v. 1.0.10.beta.1

# ____ ___ ____ ___ _____ __ _ _ _
# | _ \_ _/ ___|_ _|_ _| ___ ___ _ __ / _(_) __ _ _ _ _ __ __ _| |_(_) ___ _ __
# | |_) | | | _ | | | |_____ _____ / __/ _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \
# | __/| | |_| || | | |_____|_____| (_| (_) | | | | _| | (_| | |_| | | | (_| | |_| | (_) | | | |
# |_| |___\____|___| |_| \___\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_|
# |___/

#? Config file for pigit v. 1.3.1

# ____ ___ ____ ___ _____ __ _
# | _ \_ _/ ___|_ _|_ _| ___ ___ _ __ / _(_) __ _
# | |_) | | | _ | | | |_____ _____ / __/ _ \| '_ \| |_| |/ _` |
# | __/| | |_| || | | |_____|_____| (_| (_) | | | | _| | (_| |
# |_| |___\____|___| |_| \___\___/|_| |_|_| |_|\__, |
# 1.3.1 |___/
# Git-tools -- pigit configuration.

# Show original git command.
Expand All @@ -21,38 +20,39 @@ gitprocessor_interactive_color=True
# Display time of help information in interactive mode, 0 is permanent.
gitprocessor_interactive_help_showtime=1.5


# Whether to use the ignore configuration of the `.gitignore` file.
codecounter_use_gitignore=True

# Wether show files that cannot be counted.
codecounter_show_invalid=True
# Whether show files that cannot be counted.
codecounter_show_invalid=False

# Wether show files icons. Font support required, like: 'Nerd Font'
# Whether show files icons. Font support required, like: 'Nerd Font'
codecounter_show_icon=True

# Output format of statistical results.
# Supported: [table, simple]
# When the command line width is not enough, the `simple ` format is forced.
codecounter_result_format=table


# Timeout for getting `.gitignore` template from net.
gitignore_generator_timeout=60

# Git local config print format.
# Supported: [table, normal]
git_config_format=table

# Control which parts need to be displayed when viewing git repository information.
repository_show_path=True
repository_show_remote=True
repository_show_branchs=True
repository_show_lastest_log=True
repository_show_summary=True
repository_show_summary=False

# Wether with color when use `-h` get help message.
# Whether with color when use `-h` get help message.
help_use_color=True

# The max line width when use `-h` get help message.
help_max_line_width=90

# Wether run PIGIT in debug mode.
# Whether run PIGIT in debug mode.
debug_mode=False
10 changes: 6 additions & 4 deletions pigit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


__project__ = "pigit"
__version__ = "1.3.1.beta.1"
__version__ = "1.3.1"
__url__ = "https://github.com/zlj-zz/pigit.git"
__uri__ = __url__

Expand Down Expand Up @@ -297,12 +297,14 @@ def load_config(self) -> dict:
)
)

if "version" in new_config and (
if "version" in new_config and not (
# If current version is a [beta] verstion then will not tip.
# Else if version is not right will tip.
new_config["version"] != __version__
or "beta" not in __version__
new_config["version"] == __version__
or "beta" in __version__
or "alpha" in __version__
):
print(new_config["version"])
self.warnings.append(
"The current configuration file is not up-to-date."
"You'd better recreate it."
Expand Down

0 comments on commit f5f8bc8

Please sign in to comment.