Author: adietish
Date: 2012-01-19 06:05:53 -0500 (Thu, 19 Jan 2012)
New Revision: 37965
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.egit.core/src/org/jboss/tools/openshift/egit/core/GitIgnore.java
Log:
[JBIDE-10479] now adding and committing modified/created files to local git repo
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.egit.core/src/org/jboss/tools/openshift/egit/core/GitIgnore.java
===================================================================
---
trunk/openshift/plugins/org.jboss.tools.openshift.egit.core/src/org/jboss/tools/openshift/egit/core/GitIgnore.java 2012-01-19
09:55:49 UTC (rev 37964)
+++
trunk/openshift/plugins/org.jboss.tools.openshift.egit.core/src/org/jboss/tools/openshift/egit/core/GitIgnore.java 2012-01-19
11:05:53 UTC (rev 37965)
@@ -84,7 +84,7 @@
* otherwise
* @throws IOException
*/
- public void write(boolean overwrite) throws IOException {
+ public File write(boolean overwrite) throws IOException {
BufferedWriter writer = new BufferedWriter(new FileWriter(file, !overwrite));
try {
for (String entry : entries) {
@@ -92,6 +92,7 @@
writer.write(NL);
}
writer.flush();
+ return file;
} finally {
writer.close();
}
Show replies by date