Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10500

Camel-Git: Add allowEmpty commits option

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.18.0
    • Fix Version/s: 2.19.0
    • Component/s: camel-git
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      By default, JGit behaves differently than native git allowing empty commits. This first change is to add a new option to the GitEndpoint to be able to turn that option to false. I let it default to "true" in a first move to have backward compatibility but suggest we could default to "false" to match native git behaviour (git commit --allow-empty)

      This will raise an exception for empty commits, may be a silent mode to log warn would be a better option rather than doing error handling in camel.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ancosen Andrea Cosentino
                Reporter:
                chenapan Olivier Antibi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified