git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [[TIG][PATCH v2] 2/3] Display correct diff the context in split log view

From
Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
Date
Aug 6, 2013, 23:05 UTC
Message-ID
<20130806230534.GA11980@bluemoon.alumni.iitm.ac.in>
In-Reply-To
<1375765101-31461-3-git-send-email-a.kumar@alumni.iitm.ac.in>
On Tue, Aug 06, 2013 at 12:58:20AM -0400, Kumar Appaiah wrote:
Show 15 quoted lines
>  tig-1.1
>  -------
> diff --git a/tig.c b/tig.c
> index 845153f..256b589 100644
> --- a/tig.c
> +++ b/tig.c
> @@ -4475,8 +4475,15 @@ log_request(struct view *view, enum request request, struct line *line)
>  		state->recalculate_commit_context = TRUE;
>  		return request;
>  
> +	case REQ_ENTER:
> +		state->recalculate_commit_context = TRUE;
> +		if (VIEW(REQ_VIEW_DIFF)->ref != ref_commit)
> +			open_view(view, REQ_VIEW_DIFF, OPEN_SPLIT);
> +		update_view_title(view);
  		^^^^^^^^^^^^^^^^^^^^^^^
I missed removing update_view_title. I've done it locally, though.
Thanks.
Kumar
Show 10 quoted lines
> +		return request;
> +
>  	default:
> -		return pager_request(view, request, line);
> +		return request;
>  	}
>  }
>  
> -- 
> 1.8.3.2
-- 
Kumar Appaiah
Previous: Kumar AppaiahNext: Kumar Appaiah
Message 4 of 5 in “0/3] Refactoring the log view”
  1. Kumar AppaiahAug 6, 2013
  2. [[TIG][PATCH v2] 1/3] Add log_select function to find commit from context in log viewKumar Appaiah, Aug 6, 2013
  3. [[TIG][PATCH v2] 2/3] Display correct diff the context in split log viewKumar Appaiah, Aug 6, 2013
  4. Kumar AppaiahAug 6, 2013
  5. [[TIG][PATCH v2] 3/3] Revert "Scroll diff with arrow keys in log view"Kumar Appaiah, Aug 6, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.