aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite 'default-directory' as a variableProtesilaos Stavrou2021-02-161-1/+1
|
* Update docs for `git-email-headers`Xinglu Chen2021-02-161-3/+2
| | | | | | | | | | There is now a `git-email-get-to-address-functions` variable that determines the "to" address. * git-email.el (git-email-headers): Refer to users to the relevant variable. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Don't insert extra newline in message bodyXinglu Chen2021-02-161-1/+0
| | | | | | | | | | | | | | | | | | | | | When inserting the diff into the message body a newline is already included. Previously it would insert an additional newline at the beginning of the body. This removes the extra newline Before: --text follows this line-- body starts here After: --text follows this line-- body starts here * git-email.el (git-email--compose-email): Don't go forward a character. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Release 0.2.0Xinglu Chen2021-02-123-3/+49
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Minor spelling fixXinglu Chen2021-02-091-1/+1
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Update copyright headerXinglu Chen2021-02-095-10/+10
| | | | | | Use "all contributors" rather than a name. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Add `:package-version` to all defcustomsXinglu Chen2021-02-091-14/+28
| | | | Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* Handle error if no "to" address is foundXinglu Chen2021-02-071-3/+5
| | | | | | | | | Previously `substring` would give an error if the "to" address from "git config --list" was empty. This meant that no message would be created. This patch fixes this and instead returns an empty string if to "to" address was found. Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-headers: Add "cc" fieldXinglu Chen2021-02-061-1/+1
| | | | * git-email.el (git-email-headers):
* Add additional arguments for formatting patchesXinglu Chen2021-02-061-1/+13
| | | | | * git-email.el (git-email-format-patch-extra-args): Add more arguments for conveience.
* piem: Add integrationXinglu Chen2021-02-061-0/+71
| | | | | | | | | | | This adds integration with piem [1]. It will make git-email read the `piem-inboxes` variable to determine the “to” address. * git-email-piem.el (git-email-piem-get-to-address): Add function. (git-email-piem-inbox-by-coderepo): Add function. (git-email-piem-mode): Add minor mode Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
* git-email-send-all: Sort message buffersXinglu Chen2021-02-061-1/+3
| | | | | * git-email.el (git-email-send-all): Sort the message buffers so they get sent in the correct order.
* magit: Add dependency on transientXinglu Chen2021-02-051-1/+1
| | | | * git-email-magit.el: Add transient to "Package-Requires" field.
* flake.nix: Fix typoXinglu Chen2021-02-051-1/+1
| | | | * flake.nix: Fix name of defaultPackage.
* doc: Add docs for `git-email-get-current-project-functions`Xinglu Chen2021-02-052-21/+38
| | | | | * doc/git-email.org (Miscellaneous): Add docs for `git-email-get-current-project-functions`.
* Add general function to get project rootXinglu Chen2021-02-051-1/+25
| | | | | | | | | | This will try to get the root of the project using `projectile`, `project.el`, and `vc`, in that order. If all of the above fail, fall back to `default-directory`. * git-email.el (git-email-get-current-project-functions): Add variable. (git-email--get-current-project): Add function. (git-email--minibuffer-get-revision): Utilize the aforementioned functionality.
* README, manual: Update installation instructionsXinglu Chen2021-02-043-14/+86
| | | | Add installation instructions for nix flakes.
* default.nix: Use "master" instead of "git"Xinglu Chen2021-02-041-2/+2
| | | | | | | Make the version "master" instead of "git", this will turn the name from "git-email-git-git” to "git-email-git-master”. * default.nix:
* default.nix: Add package for version 0.1.0Xinglu Chen2021-02-041-3/+14
| | | | | | | This version did not have integration with external packages, so no "-full" version is needed. * default.nix: Add package for version 0.1.0.
* .gitignore: Ignore ./result folderXinglu Chen2021-02-041-0/+1
| | | | * .gitignore: Ignore ./result folder.
* Make repository a nix flakeXinglu Chen2021-02-043-0/+89
| | | | | | | | | | | | | | | Make git-email.el a nix flake for an easier installation process for Nix users. It currently exposes two packages: - git-email-full -- This includes all the optional libraries - git-email -- This only includes the core `git-email.el` library They both get the source from directory from the git repository, meaning they will get updates as soon as a commit is made. * default.nix: Add file. * flake.lock: Add file. * flake.nix: Add file.
* .envrc: Correct mailing list addressXinglu Chen2021-02-041-1/+1
| | | | * .envrc:
* magit: Fix typosXinglu Chen2021-02-041-2/+2
| | | | | | This is what I get when I am lazy. * git-email-magit.el: Fix typos git-email-notmuch -> git-email-magit.
* Fix typoXinglu Chen2021-02-041-1/+1
| | | | | | | This bug was introduced in 26745cb6454cfe8ab5d94359963383e016dfe2c5. * git-email.el (git-email-format-patch): The arguments should be concatenated with " " as a separator.
* Use `run-hook-with-args-until-success'Xinglu Chen2021-01-291-10/+9
| | | | | Use `run-hook-with-args-until-success' to call hooks instead of doing `seq-some'.
* Use appropriate types for defcustomsXinglu Chen2021-01-291-12/+12
| | | | Use more appropriate types for `defcustom` variables.
* Add `git-email-get-address-function' variableXinglu Chen2021-01-282-3/+22
| | | | | | | | | | This makes it possible for users to use their own function to get the “to” address. This could also be used for integration with piem.el. * doc/git-email.org (Sending email): Add bullet point. * git-email.el (git-email-get-to-address-function): Add variable. (git-email--get-to-address): Add function. (git-email--compose-email): Call the relevant function.
* Fix typo in git-email-gnus.el headerProtesilaos Stavrou2021-01-281-1/+1
|
* Small fixXinglu Chen2021-01-261-1/+1
|
* Minor correctionsXinglu Chen2021-01-261-2/+2
| | | | Thank you Protesilaos for this patch.
* doc: Add comprehensive documentationXinglu Chen2021-01-252-0/+1358
| | | | Add Org and Info manuals.
* Add .gitignoreXinglu Chen2021-01-251-0/+1
| | | | * .gitignore: Ignore generated .texi file
* README: Use README.mdXinglu Chen2021-01-252-181/+3
| | | | The Org file will be converted to an info manual instead.
* git-email.el: Add option for parsing revisionXinglu Chen2021-01-251-1/+12
| | | | | | | | | | Add an option for parsing the output of ‘git-email--minibuffer-get-revision’. This allows users to customize the ‘git log’ to run without breaking the format to use for parsing the result. * git-email.el (git-email-revision-parser): Add variable. (git-email--minibuffer-get-revision): Call ‘git-email--parse-revision’.
* git-email: Don’t assume cwd to be a projectXinglu Chen2021-01-251-2/+1
| | | | | | | | This fixes the problem of trying to send a patch that is not in a version controlled directory. Thank you Protesilaos for pointing this out in id:87wnw2m5zm.fsf@protesilaos.com. * git-email.el (git-email--compose-email): Remove local binding for ‘default-directory’.
* README: Add additional docs for using the packageXinglu Chen2021-01-242-26/+108
| | | | | Describe the process of creating and sending patches with `git-email-format-patch' and `git-email-send-email' respectively.
* git-email: Add -v to extra argsXinglu Chen2021-01-241-1/+1
| | | | | * git-email.el (git-email-format-patch-extra-args): Add "-v" to the list.
* Use uninterned symbol for local variableProtesilaos Stavrou2021-01-241-1/+2
| | | | | * git-email.el (git-email--fontify-using-faces): Make local variable 'next' an uninterned symbol.
* Add autoloads for global minor modesProtesilaos Stavrou2021-01-242-0/+2
| | | | | | | | | | * git-email-notmuch.el (git-email-gnus-mode): Add special autoload comment. * git-email-gnus.el (git-email-notmuch-mode): Add autoload. These should not be necessary, given that the edited libraries only define a minor mode.
* magit: Require relevant librariesXinglu Chen2021-01-231-0/+2
|
* README: Wording changesXinglu Chen2021-01-222-18/+19
|
* README: Add features sectionXinglu Chen2021-01-222-1/+23
|
* git-email.el: Fix typoXinglu Chen2021-01-221-1/+1
|
* git-email: Remove unused variableXinglu Chen2021-01-221-3/+0
|
* magit: Remove todosXinglu Chen2021-01-221-8/+0
|
* magit: Use `magit-log-select' to select commitXinglu Chen2021-01-221-4/+8
| | | | | This brings up a log buffer where the user the select a commit, similar to when doing an interactive rebase.
* gnus, notmuch: Fix typosXinglu Chen2021-01-202-4/+4
| | | | | * git-email-gnus.el (git-email-gnus-mode): * git-email-notmuch.el (git-email-notmuch-mode):
* git-email: Make sure point is at BOFXinglu Chen2021-01-201-0/+1
| | | | | | | Put the point at the beginning of the file before doing a search for the message body. * git-email.el (git-email--compose-email):
* magit: Add basic support for transient commandsyoctocell2021-01-181-0/+57
| | | | | This will extend the `magit-patch-create' transient prefix with a second action -- "Send patch".
* Rework `git-email-format-patch'yoctocell2021-01-181-32/+30
| | | | | | | | | | These changes were made to make git-email work better with Magit (the following commit will cover this). ARGS is a string of arguments passed to "git format-patch", RANGE is the range of commits to create patches from. If prefix argument KEEP is specified, keep the generated patches, be default they will be deleted like with "git send-email".