@@ -2374,7 +2374,11 @@ private void uploadToGitHub(String serialNumber) {
2374
2374
//edit the current gist
2375
2375
file .setContent (sketch .getCurrentCode ().getProgram ());
2376
2376
String filename = new String (sketch .getCurrentCode ().getPrettyName ()+".pde" );
2377
+ <<<<<<< HEAD
2377
2378
//remove old files (get rid of this feature if we want to save multiple projects)
2379
+ =======
2380
+ //remove old files
2381
+ >>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
2378
2382
for (String key : gist .getFiles ().keySet ()) {
2379
2383
if (!key .equals (filename )){
2380
2384
service .updateGist (gist .setFiles (Collections .singletonMap (key , new GistFile ())));
@@ -2383,7 +2387,10 @@ private void uploadToGitHub(String serialNumber) {
2383
2387
2384
2388
gist .setFiles (Collections .singletonMap (filename , file ));
2385
2389
service .updateGist (gist );
2390
+ <<<<<<< HEAD
2386
2391
System .out .println (new String ("You can find the source online at: " + gist .getHtmlUrl ()));
2392
+ =======
2393
+ >>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
2387
2394
foundMatchingGist =true ;
2388
2395
}
2389
2396
}
@@ -2394,9 +2401,15 @@ private void uploadToGitHub(String serialNumber) {
2394
2401
file .setContent (sketch .getCurrentCode ().getProgram ());
2395
2402
gist .setFiles (Collections .singletonMap (new String (sketch .getCurrentCode ().getPrettyName ()+".pde" ), file ));
2396
2403
gist = service .createGist (gist );
2404
+ <<<<<<< HEAD
2397
2405
System .out .println (new String ("You can find the source online at: " + gist .getHtmlUrl ()));
2398
2406
2399
2407
}
2408
+ =======
2409
+
2410
+ }
2411
+ System .out .println (new String ("You can find the source online at : " + gist .getHtmlUrl ()));
2412
+ >>>>>>> ec8b02761443c32a6bb28a17edf90a236b106422
2400
2413
}catch (IOException e ){
2401
2414
System .out .println (e .getMessage ());
2402
2415
}
0 commit comments