improve git-diff documentation and A...B handling #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "forgeperf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
git diff -h help is succinct, but perhaps too much so.
The symmetric-diff syntax, git diff A...B, is defined by the documentation
to compare the merge base of A and B to commit B. It does so just fine when
there is a merge base. It compares A and B directly if there is no merge
base, and it is overly forgiving of bad arguments after which it can produce
nonsensical diffs.
The first patch simply adjusts a test that will fail if the second patch is
accepted. The second patch adds special handling for the symmetric diff
syntax so that the option parsing works, plus a small test suite. The third
patch just updates the SYNOPSIS section of the documentation and makes the
help output more verbose (to match the SYNOPSIS and provide common diff
options like git-diff-files, for instance).
Welcome to GitGitGadget
Hi chris3torek, and welcome to GitGitGadget, the GitHub App to send patch series to the Git mailing list from GitHub Pull Requests.
Please make sure that your Pull Request has a good description, as it will be used as cover letter.
Also, it is a good idea to review the commit messages one last time, as the Git project expects them in a quite specific form:
It is in general a good idea to await the automated test ("Checks") in this Pull Request before contributing the patches, e.g. to avoid trivial issues such as unportable code.
Contributing the patches
Before you can contribute the patches, your GitHub username needs to be added to the list of permitted users. Any already-permitted user can do that, by adding a comment to your PR of the form
/allow. A good way to find other contributors is to locate recent pull requests where someone has been/allowed:Both the person who commented
/allowand the PR author are able to/allowyou.An alternative is the channel
#git-develon the FreeNode IRC network:Once on the list of permitted usernames, you can contribute the patches to the Git mailing list by adding a PR comment
/submit.If you want to see what email(s) would be sent for a
/submitrequest, add a PR comment/previewto have the email(s) sent to you. You must have a public GitHub email address for this.After you submit, GitGitGadget will respond with another comment that contains the link to the cover letter mail in the Git mailing list archive. Please make sure to monitor the discussion in that thread and to address comments and suggestions (while the comments and suggestions will be mirrored into the PR by GitGitGadget, you will still want to reply via mail).
If you do not want to subscribe to the Git mailing list just to be able to respond to a mail, you can download the mbox from the Git mailing list archive (click the
(raw)link), then import it into your mail program. If you use GMail, you can do this via:To iterate on your change, i.e. send a revised patch or patch series, you will first want to (force-)push to the same branch. You probably also want to modify your Pull Request description (or title). It is a good idea to summarize the revision by adding something like this to the cover letter (read: by editing the first comment on the PR, i.e. the PR description):
To send a new iteration, just add another PR comment with the contents:
/submit.Need help?
New contributors who want advice are encouraged to join git-mentoring@googlegroups.com, where volunteers who regularly contribute to Git are willing to answer newbie questions, give advice, or otherwise provide mentoring to interested contributors. You must join in order to post or view messages, but anyone can join.
You may also be able to find help in real time in the developer IRC channel,
#git-develon Freenode. Remember that IRC does not support offline messaging, so if you send someone a private message and log out, they cannot respond to you. The scrollback of#git-develis archived, though./allow
User chris3torek is now allowed to use GitGitGadget.
/preview
Preview email sent as pull.804.git.git.1591650208.gitgitgadget@gmail.com
/preview
Preview email sent as pull.804.git.git.1591652002.gitgitgadget@gmail.com
/submit
Submitted as pull.804.git.git.1591661021.gitgitgadget@gmail.com
review comment
@ -12,6 +12,8 @@ SYNOPSIS'git diff' [<options>] [<commit>] [--] [<path>...]@ -6,6 +6,7 @@#define USE_THE_INDEX_COMPATIBILITY_MACROS@ -420,7 +420,7 @@ test_expect_success 'with --autosquash and --exec' 'git commit --fixup B B.t &&/submit
Submitted as pull.804.v2.git.git.1591729224.gitgitgadget@gmail.com
@ -11,15 +11,17 @@ SYNOPSIS[verse]@ -6,6 +6,7 @@#define USE_THE_INDEX_COMPATIBILITY_MACROS#include "cache.h"/submit
Submitted as pull.804.v3.git.git.1591888511.gitgitgadget@gmail.com
@ -6,6 +6,7 @@#define USE_THE_INDEX_COMPATIBILITY_MACROS#include "cache.h"#include "config.h"View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.