Skip to content

Instantly share code, notes, and snippets.

@abhishekbh
abhishekbh / gist:b4583faedafaf9956f900ea2480178d6
Created January 24, 2018 00:02
getopt for long flag reads
#!/bin/bash
if ! options=$(getopt -o abc: -l along,blong,clong: -- "$@")
then
exit 1
fi
while [ $# -gt 0 ]
do
case $1 in
### Keybase proof
I hereby claim:
* I am abhishekbh on github.
* I am abhishekbh (https://keybase.io/abhishekbh) on keybase.
* I have a public key whose fingerprint is C666 A5FE EB9D B7A8 D81E 1D87 E2AA 8339 085C 9DE3
To claim this, I am signing this object:
@abhishekbh
abhishekbh / gist:2483493
Created April 24, 2012 20:32
EGit Clean Command
commit ab2866dcec8afbc7599fe474a2412acba552e24f
Author: Abhishek Bhatnagar <abhishekbh@gmail.com>
Date: Wed Mar 18 00:32:02 2011 -0500
WIP: Adding CleanCommand functionality to 'Advanced' menu
Change-Id: I4bcf97da3e32b609dea6e49ef226daf6fd587777
Signed-off-by: Abhishek Bhatnagar <abhatnag@redhat.com>
Change-Id: I4bcf97da3e32b609dea6e49ef226daf6fd587777
@abhishekbh
abhishekbh / gist:2483487
Created April 24, 2012 20:31
EGit Clean Command - Dialog diff
diff --git a/.project b/.project
new file mode 100644
index 0000000..50aa358
--- /dev/null
+++ b/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>egit</name>
+ <comment></comment>
@abhishekbh
abhishekbh / CommitBuilderTest.java
Created June 23, 2011 20:07
Test file for CommitBuilder.java in jgit
/*
* Copyright (C) 2011, Abhishek Bhatnagar <abhatnag@redhat.com>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at http://www.eclipse.org/org/documents/edl-v10.php
*
* All rights reserved.