Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-964

Empty git commits are not displayed correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 1.5.0
    • 1.3.3
    • Git
    • None

    Description

      If a git commit is created with --allow-empty (which is usually not recommended, see manual) this is not displayed correctly in the log detail. This is because the detail is retrieved from git diff-tree, which returns nothing.

      This is an edge case, the git manual strongly suggests that you don't use --allow-empty. A user suggested that some changes to git in future might make this more common though, so if that's the case we may want to deal with this. git diff-tree was picked because it extracts the most amount of information most reliably in all situations except this one, may need to just use a fallback in this rare case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sstreeting Steve Streeting (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: