Re: [RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-26 Thread Sidhant Sharma
On Monday 25 July 2016 11:03 PM, Jakub Narębski wrote: > W dniu 2016-07-25 o 18:58, Junio C Hamano pisze: >> Sidhant Sharma <tigerkid...@gmail.com> writes: >> >>> I was wondering if it would be a good idea to have a command to check if a >>> push or pull i

[RFC] git subcommand to check if branch is up-to-date with upstream

2016-07-25 Thread Sidhant Sharma
-to-date with the remote, and when I need to know if my local has diverged. Currently I use a script based on this stackoverflow answer[1] Not an extremely useful tool, but I thought it'll be good to have it. Warm regards, Sidhant Sharma [1] http://stackoverflow.com/a/3278427/5211579

Re: Git mascot

2016-04-16 Thread Sidhant Sharma
Hi, When thinking of a mascot for Git, the image of a cherry tree pops up in my head. I'd think of a simple and elegant caricature of a tall tree (just like git histories tend to get long) with a couple of branches and some cherries (think cherry-pick) hanging around in the lush green crown.

log --pretty accepts incomplete pre-defined formats

2016-04-06 Thread Sidhant Sharma
such as 'raw', 'short' and others. I looked at the code and it seems that it is intentionally kept so. It this so? I'm curious to know the reason behind keeping this so. Thanks and regards, Sidhant Sharma -- To unsubscribe from this list: send the line "unsubscribe git" in the body of

Re: Signed-off-by vs Reviewed-by

2016-03-31 Thread Sidhant Sharma
Hi, On Thursday 31 March 2016 08:05 PM, Miklos Vajna wrote: > Hi, > > On Thu, Mar 31, 2016 at 07:54:47PM +0530, Pranit Bauva > wrote: >> Are you suggesting to use a different email address for commiting, >> signing off and reviewing? > Let's say project A has a workflow

[RFC/GSOC] Git Beginner | Warnings for potentially destructive commands (v2)

2016-03-30 Thread Sidhant Sharma
clear Looking forward to your comments. Thanks and regards, Sidhant Sharma --- $ ggit rebase [WARNING] You are about to rebase your commits in $TOPIC_BRANCH onto the $BASE_BRANCH, which will essentially replay the work done in $TOPIC_BRANCH since last merge onto $BASE_BRANCH. For instance

Re: [RFC/GSOC] Git Beginner | Warnings for potentially destructive commands

2016-03-29 Thread Sidhant Sharma
On Friday 25 March 2016 11:08 PM, Junio C Hamano wrote: > Sidhant Sharma <tigerkid...@gmail.com> writes: > >> $ ggit rebase >> >> [WARNING] You are about to rebase your commits in onto the >> $BASE_BRANCH, which will essentially replay the work done in $T

[RFC/GSOC] Git Beginner | Warnings for potentially destructive commands

2016-03-25 Thread Sidhant Sharma
` should be kept in the list as it may not be bad in most cases, though I prepared a message for that anyway. Thanks and regards, Sidhant Sharma The current list of graylisted commands is as follows: $ git rebase $ git reset --hard $ git clean -f $ git gc --prune=now --aggressive $ git push -f

Re: [GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-22 Thread Sidhant Sharma
Updated examples with better description for force push and reset HEAD, as suggested by Lars [11]. Thanks and regards, Sidhant Sharma [11]: http://thread.gmane.org/gmane.comp.version-control.git/289365/focus=289495 --- Implement a beginner mode for Git. Abstract Git is a very powerful

Re: [GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-22 Thread Sidhant Sharma
On Tuesday 22 March 2016 02:08 PM, Lars Schneider wrote: > On 21 Mar 2016, at 11:19, Sidhant Sharma <tigerkid...@gmail.com> wrote: > >> Hi, >> I updated the draft with links, ggit usage examples and some changes to the >> timeline. I placed the links with referen

Re: [GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-21 Thread Sidhant Sharma
Hi, I updated the draft with links, ggit usage examples and some changes to the timeline. I placed the links with reference here, but in the Google Doc, they're inline. Thanks and regards, Sidhant Sharma --- Implement a beginner mode for Git. Abstract Git is a very powerful version control

Re: [GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-21 Thread Sidhant Sharma
On Monday 21 March 2016 01:59 PM, Matthieu Moy wrote: > Sidhant Sharma <tigerkid...@gmail.com> writes: > >> On Monday 21 March 2016 12:22 AM, Matthieu Moy wrote: >> >>> Note that it implies writting an almost full-blown option parser to >>> recognize

Re: [GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-21 Thread Sidhant Sharma
On Monday 21 March 2016 12:22 AM, Matthieu Moy wrote: > Sidhant Sharma <tigerkid...@gmail.com> writes: > >> A wrapper is to be implemented around (currently called 'ggit'), which will >> provide the following user interface: >> `ggit ` > There's actually alrea

[GSOC/RFC] GSoC Proposal Draft | Git Beginner

2016-03-20 Thread Sidhant Sharma
and regards, Sidhant Sharma --- Implement a beginner mode for Git. Abstract Git is a very powerful version control system, with an array of features that lend the user with great capabilities. But it often so happens that some beginners are overwhelmed by its complexity and are unable to fully

Re: [RFC/GSoC] Introduction

2016-03-20 Thread Sidhant Sharma
On Sunday 20 March 2016 09:38 PM, Lars Schneider wrote: > On 20 Mar 2016, at 16:51, Sidhant Sharma <tigerkid...@gmail.com> wrote: > >> On Sunday 20 March 2016 09:09 PM, Lars Schneider wrote: >>> Hi Sidhant, >>> >>> that sounds about right to

Re: [RFC/GSoC] Introduction

2016-03-20 Thread Sidhant Sharma
ar with bash, if they are required. Would C be the right choice though? Also, I've made a draft proposal for the project and uploaded to the GSoC application site. Should I send it to the list as well for RFC? Thanks, Sidhant Sharma > Best, > Lars > > On 17 Mar 2016, at 15:52,

Re: [PATCH/GSoC] pull: implement --[no-]autostash for usage when rebasing

2016-03-19 Thread Sidhant Sharma
to mention which GSoC project idea you would like to work on, as there already may be other proposals on their way. Thanks and regards, Sidhant Sharma [1] http://thread.gmane.org/gmane.comp.version-control.git/287568/focus=287569 [2] http://thread.gmane.org/gmane.comp.version-control.git/289127/focu

Re: [RFC/GSoC] Introduction

2016-03-19 Thread Sidhant Sharma
ef summary of the command what it will do when executed, explaining it's intended usage. Is the list correct, or did I miss something? Thanks and regards, Sidhant Sharma -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More maj

Re: [RFC/GSoC] Introduction

2016-03-14 Thread Sidhant Sharma
On Monday 14 March 2016 11:44 AM, Jacob Keller wrote: > On Sun, Mar 13, 2016 at 10:25 PM, Sidhant Sharma <tigerkid...@gmail.com> > wrote: >> On Monday 14 March 2016 04:58 AM, Jacob Keller wrote: >>> >>> If I recall correctly, a configuration setting was

Re: [RFC/GSoC] Introduction

2016-03-14 Thread Sidhant Sharma
te project and if it picks up then Git core can still > decide to merge it? > I understand that this endeavour may or may not be merged into the official Git distribution (though I'd really like it to :)), but I still wish to attempt this. I'm also eager to continue work on this even after GSoC is over, so maintenance shouldn't be an issue ;) Thanks and regards, Sidhant Sharma -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC/GSoC] Introduction

2016-03-13 Thread Sidhant Sharma
On Monday 14 March 2016 02:49 AM, Kevin Daudt wrote: > On Mon, Mar 14, 2016 at 12:03:33AM +0530, Sidhant Sharma wrote: >> Other than this, I also tried to expand the list of potentially destructive >> commands and updated the list as follows (additions in brackets): >> >&

Re: [RFC/GSoC] Introduction

2016-03-13 Thread Sidhant Sharma
On Monday 14 March 2016 04:58 AM, Jacob Keller wrote: > On Sun, Mar 13, 2016 at 11:33 AM, Sidhant Sharma <tigerkid...@gmail.com> > wrote: >> Coincidentally, my approach too is a wrapper around git as you suggest. >> The approach is simple and straight forward, but I

Re: [RFC/GSoC] Introduction

2016-03-13 Thread Sidhant Sharma
ist as follows (additions in brackets): * git rebase [ git pull --rebase ] * git reset --hard * git clean -f * git gc --prune=now --aggressive * git push -f [ git push :, git push + ] * [ git branch -D ] Are these additions appropriate? What other commands should be included? Thanks and

[RFC/GSoC] Introduction

2016-03-11 Thread Sidhant Sharma
Hi everyone! I am Sidhant Sharma, from Delhi, India. I'm a third year Software Engineering student at Delhi Technological University. I am looking to contribute to Git via GSoC 2016. I have also worked on one of the microprojects [1]. I've been using git for nearly two years now, and continue

Re: More configuration options for some commonly used command-line options

2016-03-08 Thread Sidhant Sharma
Sidhant Sharma wrote: > Hi, > > Regarding the GSoC Microproject 'Add configuration options for some commonly > used command-line options', currently the list [1] mentions only > `git commit -v`. Can the following also be candidates for configurations? > * git log -p > *

More configuration options for some commonly used command-line options

2016-03-07 Thread Sidhant Sharma
Hi, Regarding the GSoC Microproject 'Add configuration options for some commonly used command-line options', currently the list [1] mentions only `git commit -v`. Can the following also be candidates for configurations? * git log -p * git remote -v * git branch -v Regards, Sidhant Sharma [:tk

Re: [PATCH] stripspace: add --line-count flag

2016-03-04 Thread Sidhant Sharma
On Saturday 05 March 2016 12:19 AM, Junio C Hamano wrote: > Sidhant Sharma <tigerkid...@gmail.com> writes: > >> This is my first attempt at the small project listed here: >> https://git.wiki.kernel.org/index.php/SmallProjectsIdeas#implement_.27--count-lines.27

Re: [PATCH] stripspace: add --line-count flag

2016-03-04 Thread Sidhant Sharma
is more apt for this. Comments? Thanks and regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] stripspace: add --line-count flag

2016-03-04 Thread Sidhant Sharma [:tk]
When used, this flag outputs number of lines after stripspace has removed trailing whitespace. With `--line-count`, git-rebase--interactive.sh need not rely on `wc -l` for line count. Signed-off-by: Sidhant Sharma [:tk] <tigerkid...@gmail.com> --- This the first version of the

Re: [PATCH v2] builtin/receive-pack.c: use parse_options API

2016-03-02 Thread Sidhant Sharma
> On Wed, Mar 2, 2016 at 3:21 AM, Sidhant Sharma [:tk] > <tigerkid...@gmail.com> wrote: >> + struct option options[] = { >> + OPT__QUIET(, N_("quiet")), >> + OPT_HIDDEN_BOOL(0, "stateless-rpc", _rpc, NULL), >

Re: [PATCH v2] builtin/receive-pack.c: use parse_options API

2016-03-01 Thread Sidhant Sharma
> Matthieu Moy <matthieu@grenoble-inp.fr> writes: > >> "Sidhant Sharma [:tk]" <tigerkid...@gmail.com> writes: >> >>> Make receive-pack use the parse_options API, >>> bringing it more in line with send-pack and push. >> Th

Re: [PATCH v2] builtin/receive-pack.c: use parse_options API

2016-03-01 Thread Sidhant Sharma
y make review > easier. I tried using the other algorithms, but results were same for all. Regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH v2] builtin/receive-pack.c: use parse_options API

2016-03-01 Thread Sidhant Sharma [:tk]
Make receive-pack use the parse_options API, bringing it more in line with send-pack and push. Helped-by: Matthieu Moy <matthieu@grenoble-inp.fr> Signed-off-by: Sidhant Sharma [:tk] <tigerkid...@gmail.com> --- Link to previous version: $gmane/288035 builtin/receive

Re: [PATCH] builtin/receive-pack.c: use parse_options API

2016-03-01 Thread Sidhant Sharma
> Hi, > > Thanks for your patch. > > "Sidhant Sharma [:tk]" <tigerkid...@gmail.com> writes: > >> This patch makes receive-pack use the parse_options API, > We usually avoid saying "this patch" and use imperative tone: talk to > y

[PATCH] builtin/receive-pack.c: use parse_options API

2016-03-01 Thread Sidhant Sharma [:tk]
This patch makes receive-pack use the parse_options API, bringing it more in line with send-pack and push. Helped-by: Matthieu Moy <matthieu@grenoble-inp.fr> Signed-off-by: Sidhant Sharma [:tk] <tigerkid...@gmail.com> --- builtin/receive

Re: GSoC 2016 Microproject

2016-03-01 Thread Sidhant Sharma
for reject-thin-pack-for-testing, where I used PARSE_OPT_HIDDEN. I ran the test locally and also on Travis, and the all tests passed. How do I proceed now? Thanks and regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a messa

Re: GSoC 2016 Microproject

2016-02-29 Thread Sidhant Sharma
's what I'm about to do". > I'm really sorry, I'm not very familiar with mailing list etiquettes. I'll keep that in mind :) Thanks and regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: GSoC 2016 Microproject

2016-02-29 Thread Sidhant Sharma
Hi, Should I make a patch for this and submit it for discussion on the mailing list? Regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: GSoC 2016 Microproject

2016-02-28 Thread Sidhant Sharma
s welcome. Regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: GSoC 2016 Microproject

2016-02-27 Thread Sidhant Sharma
Would that be okay? Thanks again. Regards, Sidhant Sharma [:tk] -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

GSoC 2016 Microproject

2016-02-27 Thread Sidhant Sharma
Hi everyone, I'm Sidhant Sharma. I'm looking to participate in GSoC 2016 (and contribute to Git in general as well). I read up the pages relating to participation in GSoC and selected the microproject "Add configuration options for some commonly used command-line options". I

[PATCH] worktree: usage: denote as optional with 'add'

2015-10-18 Thread Sidhant Sharma
Although 1eb07d8 (worktree: add: auto-vivify new branch when is omitted, 2015-07-06) updated the documentation when became optional, it neglected to update the in-code usage message. Fix this oversight. Reported-by: ch3co...@gmail.com Signed-off-by: Sidhant Sharma <tigerkid...@gmail.

[PATCH] Fix missing brackets in worktree usage

2015-10-18 Thread Sidhant Sharma
H, I'm just starting out with development for Git. Found this super easy to fix, so here is a patch :) Sidhant Sharma (1): builtin/worktree.c: Fix usage message builtin/worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.6.2 >From 6b9bc79b698d4c9e1a0f74c37887caf2a05f9

[PATCH] Fix worktree usage message

2015-10-18 Thread Sidhant Sharma
Mark optional in worktree command line usage to maintain consistency with man pages. Reported-by: ch3co...@gmail.com Signed-off-by: Sidhant Sharma <tigerkid...@gmail.com> --- It was reported here: http://marc.info/?l=git=144514145804787=2 builtin/worktree.c | 2 +- 1 file chan

[PATCH] Fix worktree usage message

2015-10-18 Thread Sidhant Sharma
Mark as optional in worktree command line usage. Hi, just starting out with development for Git. Found this one super easy to fix, so made a patch :) --- builtin/worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index