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

[PATCH 3/3] am: rename "struct tree_desc t" to "desc" for readability

From
David Aguilar <davvid@gmail.com>
Date
Aug 21, 2015, 08:02 UTC
Message-ID
<1440144151-24026-3-git-send-email-davvid@gmail.com>
In-Reply-To
<1440144151-24026-1-git-send-email-davvid@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
---
 builtin/am.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builtin/am.c b/builtin/am.c
index 9db1b34..7e6860d 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -1907,7 +1907,7 @@ static int fast_forward_to(struct tree *head, struct tree *remote, int reset)
 {
 	struct lock_file *lock_file;
 	struct unpack_trees_options opts;
-	struct tree_desc t[2];
+	struct tree_desc desc[2];
 
 	if (parse_tree(head) || parse_tree(remote))
 		return -1;
@@ -1925,10 +1925,10 @@ static int fast_forward_to(struct tree *head, struct tree *remote, int reset)
 	opts.merge = 1;
 	opts.reset = reset;
 	opts.fn = twoway_merge;
-	init_tree_desc(&t[0], head->buffer, head->size);
-	init_tree_desc(&t[1], remote->buffer, remote->size);
+	init_tree_desc(&desc[0], head->buffer, head->size);
+	init_tree_desc(&desc[1], remote->buffer, remote->size);
 
-	if (unpack_trees(2, t, &opts)) {
+	if (unpack_trees(2, desc, &opts)) {
 		rollback_lock_file(lock_file);
 		return -1;
 	}
-- 
2.5.0.403.gd17121e
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “t4151: demonstrate that builtin am corrupts index' stat data”
  1. 1/3 t4151: demonstrate that builtin am corrupts index' stat dataDavid Aguilar, Aug 21, 2015
  2. 2/3 am: do not corrupt the index stat stateDavid Aguilar, Aug 21, 2015
  3. Junio C HamanoAug 21, 2015
  4. 3/3 am: rename "struct tree_desc t" to "desc" for readabilityDavid Aguilar, Aug 21, 2015
  5. Junio C HamanoAug 21, 2015

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.