-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
459 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ trim_trailing_whitespace = false | |
|
||
[*.html] | ||
trim_trailing_whitespace = false | ||
|
||
[*.py] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- | ||
Note | ||
* Mark the PR as draft until it's ready to be reviewed. | ||
* Please update the documentation to reflect the changes made in the PR. | ||
* If the command is covered by tests under ./tests, please add/update tests for any changes unless you have a good reason. | ||
* Make a new commit to resolve conversations instead of `push -f`. | ||
* To resolve merge conflicts, merge from the `main` branch instead of rebasing over `main`. | ||
* Please wait for the reviewer to mark a conversation as resolved. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.venv/ | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
minversion = 7.4 | ||
addopts = -ra -q | ||
testpaths = tests | ||
faulthandler_timeout = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,13 @@ Maintainers | |
- Nimit Kalra <[email protected]> | ||
- Nicolai Skogheim <[email protected]> | ||
- spacewander <[email protected]> | ||
- Edwin Kofler <[email protected]> | ||
|
||
Patches and Suggestions | ||
``````````````````````` | ||
- Jonhnny Weslley | ||
- Tobias Fendin | ||
- LeeW | ||
- Edwin Kofler | ||
- timfeirg | ||
- Niklas Schlimm | ||
- nickl- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
## Your new git-extra command should support | ||
# Contributing | ||
|
||
* OSX, Linux, BSD (You may need to browse their man page)<sup>*</sup> | ||
* Bash 3.2+ (If you aren't sure, see [the Bash changelog](https://www.tldp.org/LDP/abs/html/bash2.html)) | ||
* Git 2.1+ | ||
Thanks for contributing! Please read this document before you make a PR. | ||
|
||
<sup>*</sup>If you aren't able to test your new command on a platform, | ||
make that clear in your PR and someone else may be able to test it on their system. | ||
## Supported Platforms | ||
|
||
## To submit a new command, you should | ||
Any changes must support the following platforms: | ||
|
||
Let's assume your new command is named `foo`. | ||
- macOS | ||
- Linux | ||
- OpenBSD (You may need to browse their man page) | ||
|
||
Your change must also be compatible with the dependency constraints that we specify in [Installation](./Installation.md). If you aren't sure if a feature is compatible, check the manual or release notes. For example, the Bash changelog is [here](https://git.savannah.gnu.org/cgit/bash.git/tree/NEWS?h=devel). | ||
|
||
If you aren't able to test your new command on a platform, make that clear in your PR; someone else may be able to test it on their system. | ||
|
||
## Adding a New Command | ||
|
||
Let's say you wish to add a new command. Assuming your new command is named `foo`: | ||
|
||
1. Write a bash script under `./bin` called `git-foo`. The script should be started with `#!/usr/bin/env bash`. | ||
2. Read `./man/Readme.md` and write documentation for `git-foo`. | ||
3. Don't forget to introduce it in `Commands.md`. | ||
4. Update `./etc/git-extras-completion.zsh`. Just follow existing code. | ||
5. (Optional) Update `./etc/bash_completion.sh`. | ||
6. (Optional) Update `./etc/git-extras.fish`. | ||
7. Run `./check_integrity.sh foo` to check if all done. | ||
7. (Optional) Add a test under `./tests`. | ||
8. Run `./check_integrity.sh foo` to check if all done. | ||
|
||
You are welcome to open up an issue to discuss new commands or features before opening a pull request. | ||
|
||
## Submitting a pull request | ||
|
||
Please follow the suggestion in `./.github/PULL_REQUEST_TEMPLATE.md`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.