Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-570

Using --follow with -c with git log is slow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libraries
    • Labels:
      None

      Description

      The combination of these flags result in a very slow operation, has for example been observed here:

      git clone https://github.com/openjdk/panama-foreign.git
      cd panama-foreign
      git fetch https://github.com/openjdk-bot/panama-foreign 65ff1424467a7dfa3cd5ea9d5d7d57d6d6369422
      git fetch https://github.com/openjdk-bot/panama-foreign 1e9639a90b41ed1a1b7972519e1ec38c62a1de49

      Now running this takes time:

      git log -c --no-patch --full-history --follow --format='#@!_-=& %H%n%P%n%an%n%ae%n%aI%n%cn%n%ce%n%cI%n%B=@=@=@=@=@' --topo-order --no-abbrev --no-color 1e9639a90b41ed1a1b7972519e1ec38c62a1de49..65ff1424467a7dfa3cd5ea9d5d7d57d6d6369422 -- doc/panama_jextract.md

      But dropping either -c or --follow is much faster.

        Attachments

          Activity

            People

            Assignee:
            ehelin Erik Helin
            Reporter:
            rwestberg Robin Westberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: