public String toSubmodules()

in java/com/googlesource/gerrit/plugins/supermanifest/JiriProjects.java [160:179]


    public String toSubmodules() {
      StringBuffer buf = new StringBuffer(String.format("[submodule \"%s\"]", name));
      buf.append("\n\tpath = " + path);
      buf.append("\n\turl = " + remote);
      String branch = "";
      if (!remotebranch.isEmpty()) {
        branch = remotebranch;
      }

      if (!revision.isEmpty()) {
        branch = revision;
      }

      if (!branch.isEmpty()) {
        buf.append("\n\tbranch = " + branch);
      }

      buf.append("\n");
      return buf.toString();
    }