1. 03 Nov, 2018 8 commits
  2. 01 Nov, 2018 2 commits
  3. 29 Oct, 2018 5 commits
    • Jonas Bernoulli's avatar
      magit-branch-rename: Ask before renaming on remote · 14c7b138
      Jonas Bernoulli authored
      On Github at least doing so would close an associated pull-request
      permanently.  This would be annoying if the user actually wanted to
      do the equivalent of:
      
        git checkout -b feature-r2 feature
        ...redo feature better...
        git branch -m feature feature-r1
        git branch -m feature-r2 feature
        git push --force origin feature feature-r1
      
      This happened with #3622.
      14c7b138
    • Jonas Bernoulli's avatar
      magit-with-editor-envvar: New variable · 8506935a
      Jonas Bernoulli authored
      Setting this to `GIT_SEQUENCE_EDITOR' means that Emacs will be used to
      edit a file on behalf of `git rebase -i' but not when creating commits.
      In that case `GIT_EDITOR' (if set, else `EDITOR') will be used to edit
      commit messages and similar files.  Setting one of these env variables
      is the responsibility of the user; by setting this variable, they have
      opted out of having Magit do it for them.
      
      Closes #3629.
      8506935a
    • Kyle Meyer's avatar
      magit-reverse-files: Extend binary file check · 6cf97f5c
      Kyle Meyer authored
      The magit apply variants fail on binary files because they operate on
      diff output that exists in the buffer, and that output isn't (and
      shouldn't be) inserted with `git diff --binary'.  d0e04a14
      (magit-reverse-files: do not attempt to reverse binary files,
      2015-03-06) provided a more informative error message by checking for
      staged binary files.  Teach magit-reverse-files to also check for
      binary files when reversing files from revision and diff buffers.
      
      For revision mode, note that we use `diff REV^..REV' rather than
      `diff-index REV', but diff-index would be needed to match what the
      revision buffer shows for merge and root commits.  However, using
      diff-index isn't worth the added complexity.  In the case of a merge
      commit, `diff REV^..REV' would still return the correct list of binary
      files in the very rare case that a binary file shows up as a resolved
      path in a revision buffer.  In the case of a root commit, we'd fail to
      detect binary files, but this just means that we fall back to
      displaying a less informative error message in the process buffer.
      
      Closes #3625.
      6cf97f5c
    • Kyle Meyer's avatar
      magit-staged-binary-files: Generalize and rename · d4240f5e
      Kyle Meyer authored
      This function exists so that we can detect when a user is attempting
      to perform an invalid operation on a binary file and give an
      informative error message.  To make the reverse checks more
      comprehensive, we'll need to check diffs other than the one between
      HEAD and the index.  In preparation for this, adjust
      magit-staged-binary-files to take an arbitrary list of of git-diff
      arguments.
      d4240f5e
    • Jonas Bernoulli's avatar
      Only merge into wipref after commit if any wip mode is enabled · fa0e336c
      Jonas Bernoulli authored
      The merging is done using `magit-wip-commit', which does more than
      just merge.  It also creates the wipref if it doesn't exist yet and
      that is clearly undesirable when the user hasn't enabled any of the
      wip modes.
      fa0e336c
  4. 27 Oct, 2018 6 commits
  5. 26 Oct, 2018 1 commit
  6. 25 Oct, 2018 8 commits
  7. 24 Oct, 2018 8 commits
    • Jonas Bernoulli's avatar
      Support log --left-right without --graph · 863569fd
      Jonas Bernoulli authored
      863569fd
    • Jordan Galby's avatar
      Support log --left-right output · 597fcc7b
      Jordan Galby authored
      Added `<` and `>` graph marker to the log regexps.
      597fcc7b
    • Kyle Meyer's avatar
      magit-reverse-files: Guard against empty section list · c7bbe3e9
      Kyle Meyer authored
      magit-reverse-files removes binary files from `sections', so it may
      end up nil.  At the time this code was introduced, passing nil to
      magit-reverse-apply wasn't an issue, but it leads to a type error in
      magit-apply-patch since ddce6ce4 (sections: Use oref instead of
      dedicated slot accessors, 2018-01-17).
      
      Note: magit-discard-files--discard performs a similar removal of
      binary files, but it doesn't lead to a type error because it already
      guards against the nil case.
      c7bbe3e9
    • Jonas Bernoulli's avatar
      Use magit-{previous,next} line instead of {previous,next}-line · 3ae75c86
      Jonas Bernoulli authored
      As the doc-strings say, there are two inconsistencies to choose from.
      I think the one chosen by using these commands is less of a problem.
      3ae75c86
    • Jonas Bernoulli's avatar
      Initially collapse stashes section · 4dc1d059
      Jonas Bernoulli authored
      A long time ago that was what used to happen but I changed the default
      because I thought that would encourage users, like me, who tend to
      leave too many old stashes laying around, to do something about it.
      
      That didn't work at all, at least not for me, the stashes just got
      more annoying.  So once it added support for letting users set the
      initial visibility I took advantage of that and hid them again.
      
      Now I am doing the same for everyone.
      4dc1d059
    • Jonas Bernoulli's avatar
      magit-repository-directories: Add some default directories · f77d1158
      Jonas Bernoulli authored
      If these directories do not actually exist or don't contain any
      repositories, then that isn't much of a problem but it helps users of
      `borg'.  Users who want to use that features that use the value of
      this option have to customize this anyway (except now `borg' users),
      so the default being non-nil shouldn't upset anyone.
      f77d1158
    • Jonas Bernoulli's avatar
      magit-revision-show-gravatar: Make more easily customizable · b82228bc
      Jonas Bernoulli authored
      Actually it was already easily customizable using the
      Custom interface, but when using `setq' it was painful.
      b82228bc
    • Jonas Bernoulli's avatar
      magit-insert-revision-gravatars: Allow inserting only one of them · f4b8fee6
      Jonas Bernoulli authored
      The documentation already claimed that was possible, but trying to do
      so would actually have resulted in an error.  Not that I expect that
      anyone would want to do this--but lets behave as documented anyway.
      f4b8fee6
  8. 23 Oct, 2018 1 commit
  9. 22 Oct, 2018 1 commit