# Implementation of git rebase --status

3 messages from 2015-05-26 to 2015-05-26. Participants: Guillaume Pages, Junio C Hamano.
Thread: https://gitlist.dev/t/39427

## Guillaume Pages, 2015-05-26 14:38

Subject: Implementation of git rebase --status
Message-ID: <2024498388.1201300.1432651081110.JavaMail.zimbra@ensimag.grenoble-inp.fr>
URL: https://gitlist.dev/e/2024498388.1201300.1432651081110.JavaMail.zimbra%40ensimag.grenoble-inp.fr
In-Reply-To: <1086316854.1201217.1432650834727.JavaMail.zimbra@ensimag.grenoble-inp.fr>

```
Hi, 

I would like to implement a new command git rebase --status to inform the user 
about the current rebase session. Here is a sample of what I think it could 
look like in case of merge conflict: 

git rebase --status 
You are in the middle of a rebase session. 
The line that paused this session is: 
pick 848a16f commit with conflicts 
CONFLICT (content): Merge conflict in file1 
Consult and edit remaining actions with git rebase --edit-todo 

In case of syntax error: 

git rebase --status 
You are in the middle of a rebase session. 
The line that paused this session is: 
tick 848a16f syntax error 
SYNTAX ERROR 
Consult and edit remaining actions with git rebase --edit-todo 

In case of error during the execution of a script: 

git rebase --status 
You are in the middle of a rebase session. 
The line that paused this session is: 
exec exit 3 
ERROR IN SCRIPT EXECUTION 
Consult and edit remaining actions with git rebase --edit-todo 

Do you think it could be usefull or do you have any suggestion? 

Thanks, 

Guillaume Pagès 

```

## Junio C Hamano, 2015-05-26 16:20

Subject: Re: Implementation of git rebase --status
Message-ID: <xmqqiobfl38p.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqiobfl38p.fsf%40gitster.dls.corp.google.com
In-Reply-To: <2024498388.1201300.1432651081110.JavaMail.zimbra@ensimag.grenoble-inp.fr>

```
Guillaume Pages <guillaume.pages@ensimag.grenoble-inp.fr> writes:

> Do you think it could be usefull or do you have any suggestion? 

All of your examples say things like:

    > You are in the middle of a rebase session. 
    > The line that paused this session is: 

but what if there is no such "line"?

IOW, what does the user see when using this new option during a "git
rebase" (not "git rebase -i")?

Other than that, sounds like a neat thing to do.

```

## Guillaume Pages, 2015-05-26 18:21

Subject: Re: Implementation of git rebase --status
Message-ID: <1778818097.1210126.1432664493400.JavaMail.zimbra@ensimag.grenoble-inp.fr>
URL: https://gitlist.dev/e/1778818097.1210126.1432664493400.JavaMail.zimbra%40ensimag.grenoble-inp.fr
In-Reply-To: <xmqqiobfl38p.fsf@gitster.dls.corp.google.com>

```

Junio C Hamano <gitster@pobox.com> writes:

>Guillaume Pages <guillaume.pages@ensimag.grenoble-inp.fr> writes: 

>> Do you think it could be useful or do you have any suggestion? 

>All of your examples say things like: 

>> You are in the middle of a rebase session. 
>> The line that paused this session is: 

>but what if there is no such "line"? 

>IOW, what does the user see when using this new option during a "git 
>rebase" (not "git rebase -i")? 

I guess it should display the sha1 of the patch that failed in this case.

>Other than that, sounds like a neat thing to do. 

```
