Skip to content

Commit 5ed0699

Browse files
committed
com.symplegit.api: Javadoc
1 parent daec691 commit 5ed0699

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/main/java/com/symplegit/api/GitCommander.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@
6767
6868
// Test all is OK:
6969
if (gitCommander.isResponseOk()) {
70-
System.out.println("Branch " + branchName + " successfully created!");
70+
System.out.println("Branch: " + branchName + " successfully created!");
7171
}
7272
else {
7373
String error = gitCommander.getProcessError();
74-
System.out.println("Could not create branch: " +error);
74+
System.out.println("Could not create branch: " + error);
7575
}
7676
7777
// Example of output: Get the active branch name
7878
gitCommander.executeGitCommand("git", "branch");
7979
if (gitCommander.isResponseOk()) {
80-
System.out.println("Active Branch " + gitCommander.getProcessOutput());
80+
System.out.println("Active Branch: " + gitCommander.getProcessOutput());
8181
}
8282
}
8383
* </code>

src/main/java/com/symplegit/api/GitWrapper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020

2121
package com.symplegit.api;
22+
2223
/**
2324
* The GitWrapper interface defines the essential functionalities that a wrapper
2425
* class for Git operations should implement. This interface ensures a
@@ -36,13 +37,15 @@ public interface GitWrapper {
3637
* 0), false otherwise.
3738
*/
3839
public boolean isResponseOk();
40+
3941
/**
4042
* Retrieves the error message from the last executed Git command, if any.
4143
*
4244
* @return A String containing the error message from the last Git command
4345
* execution. Returns null or an empty string if there was no error.
4446
*/
4547
public String getError();
48+
4649
/**
4750
* Gets the exception that was thrown during the last executed Git command, if
4851
* any.

0 commit comments

Comments
 (0)