Tabnine Logo
ChangeIdUtil.computeChangeId
Code IndexAdd Tabnine to your IDE (free)

How to use
computeChangeId
method
in
org.eclipse.jgit.util.ChangeIdUtil

Best Java code snippets using org.eclipse.jgit.util.ChangeIdUtil.computeChangeId (Showing top 3 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

private void insertChangeId(ObjectId treeId) {
  ObjectId firstParentId = null;
  if (!parents.isEmpty())
    firstParentId = parents.get(0);
  ObjectId changeId = ChangeIdUtil.computeChangeId(treeId, firstParentId,
      author, committer, message);
  message = ChangeIdUtil.insertId(message, changeId);
  if (changeId != null)
    message = message.replaceAll("\nChange-Id: I" //$NON-NLS-1$
        + ObjectId.zeroId().getName() + "\n", "\nChange-Id: I" //$NON-NLS-1$ //$NON-NLS-2$
        + changeId.getName() + "\n"); //$NON-NLS-1$
}
origin: berlam/github-bucket

private void insertChangeId(ObjectId treeId) {
  ObjectId firstParentId = null;
  if (!parents.isEmpty())
    firstParentId = parents.get(0);
  ObjectId changeId = ChangeIdUtil.computeChangeId(treeId, firstParentId,
      author, committer, message);
  message = ChangeIdUtil.insertId(message, changeId);
  if (changeId != null)
    message = message.replaceAll("\nChange-Id: I" //$NON-NLS-1$
        + ObjectId.zeroId().getName() + "\n", "\nChange-Id: I" //$NON-NLS-1$ //$NON-NLS-2$
        + changeId.getName() + "\n"); //$NON-NLS-1$
}
origin: sonia.jgit/org.eclipse.jgit

private void insertChangeId(ObjectId treeId) {
  ObjectId firstParentId = null;
  if (!parents.isEmpty())
    firstParentId = parents.get(0);
  ObjectId changeId = ChangeIdUtil.computeChangeId(treeId, firstParentId,
      author, committer, message);
  message = ChangeIdUtil.insertId(message, changeId);
  if (changeId != null)
    message = message.replaceAll("\nChange-Id: I" //$NON-NLS-1$
        + ObjectId.zeroId().getName() + "\n", "\nChange-Id: I" //$NON-NLS-1$ //$NON-NLS-2$
        + changeId.getName() + "\n"); //$NON-NLS-1$
}
org.eclipse.jgit.utilChangeIdUtilcomputeChangeId

Javadoc

Compute a Change-Id.

Popular methods of ChangeIdUtil

  • indexOfChangeId
    Return the index in the String message where the Change-Id entry in the footer begins. If there are
  • insertId
    Find the right place to insert a Change-Id and return it. If no Change-Id is found the Change-Id is
  • clean
  • indexOfFirstFooterLine
    Find the index of the first line of the footer paragraph in an array of the lines, or lines.length i
  • isEmptyLine
  • trimRight

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Notification (javax.management)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now