From: "H. Peter Anvin" <hpa@zytor.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: [PATCH 3/3] Trivial optimization
Date: Mon, 10 Oct 2005 13:50:34 -0700 [thread overview]
Message-ID: <434AD41A.2040903@zytor.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: 03-git-dir-environment-is-always-a-string-literal.patch --]
[-- Type: text/x-patch, Size: 971 bytes --]
GIT_DIR_ENVIRONMENT is always a string literal
---
commit db6b7c2ba5e59184de22c55b36c21b5ef94da325
tree dc809b653f9d7dcfa096ca763987ccb0e87599ba
parent 16e46159b554116a7d95a206913fcdf7e79e07d0
author Peter Anvin <hpa@tazenda.sc.orionmulti.com> Mon, 10 Oct 2005 12:33:51 -0700
committer Peter Anvin <hpa@tazenda.sc.orionmulti.com> Mon, 10 Oct 2005 12:33:51 -0700
rsh.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/rsh.c b/rsh.c
index 8278eab..64c4809 100644
--- a/rsh.c
+++ b/rsh.c
@@ -73,8 +73,7 @@ int setup_connection(int *fd_in, int *fd
posn = command;
of = 0;
of |= add_to_string(&posn, &sizen, "env ", 0);
- of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT, 0);
- of |= add_to_string(&posn, &sizen, "=", 0);
+ of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT "=", 0);
of |= add_to_string(&posn, &sizen, path, 1);
of |= add_to_string(&posn, &sizen, " ", 0);
of |= add_to_string(&posn, &sizen, remote_prog, 1);
reply other threads:[~2005-10-10 20:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434AD41A.2040903@zytor.com \
--to=hpa@zytor.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).