git-summary correctly displays project name when not executed in the top
level directory of a repository. Fixestj/git-extras#302.
Uses the git-sh-setup script to find top level directory and then uses
that directory name for the project name.
(1) make format configurable
you can change the default changelog format by configuring
changelog.format git variable
for example:
git config changelog.format '- %s (%ae)'
gives you something like that:
- Merge pull request #298 from timfeirg/master (hemanth.hm@gmail.com)
- remove stuff from readme & form a list (kkcocogogo@gmail.com)
see git-log man for more examples
(2) make log options configurable
set `changelog.opts` to influence the way changelogs are generated
git config changelog.opts --no-merges
or:
git config changelog.opts --first-parent
fixes#285
also:
- delay calculating HEAD until needed
- remove extra line before header
The editor used will be chosen from the GIT_EDITOR environment variable,
the core.editor configuration variable, the VISUAL environment variable,
or the EDITOR environment variable (in that order).
That ensures that `git-changelog` and `git-authors` will use the same editor
as `git-commit`, `git-merge` etc.
Fixes#279 using the suggestion from @hemanth, with some minor tweaks:
- I kept the leading . because I figured there was a reason it was put there originally.
- Changed the show_cursor method that's called when the process exits (prematurely or naturally) to be show_cursor_and_cleanup, and added a line to it that cleans up the tmp file.
Although Github reserves the 'visionmedia' user space(a visit to there
will be redirected to 'tj'), it's better to
rename the links from visionmedia/git-extras to tj/git-extras
It was a bug on my setup, the test did no detect the
branch name, so I change:
if [[ $arg != -* ]]; then
by
if [ -n "${arg}" ]; then
According to test man page, -n:
«True if the length of string is non-zero.»
I also added quote and {} around the param,
to prevent bash expension around strange char.
- Revert "FIX: check if un-pushed commits". This reverts commit bd80a4e512.
- Revert "Add check for no changes in the tree (no sub-modules)". This reverts commit f2a41c54b1.
Resolves#234
`git squash` refactor:
- first argument can be a branch or a commit reference
- the `--me` argument is not required anymore
- use `git reset --soft` is squashing on a current branch
- if squashing on master branch, prompt for confirmation
- does not delete provided branch after squashing
- fix bug: if `git merge --squash` command fails, exit script
Update README and man pages.
Fixes#95Closes#198