git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Rogers <jrogers@socialserve.com>
To: git@vger.kernel.org
Subject: Qgit should use "git config" instead of "git repo-config"
Date: Mon, 09 May 2011 17:15:08 -0400	[thread overview]
Message-ID: <4DC8595C.30600@socialserve.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

Here's a small patch to cause qgit to use "git config" instead of "git 
repo-config" in a couple of places.

-- 
Jonathan Ross Rogers


[-- Attachment #2: qgit_config.patch --]
[-- Type: text/plain, Size: 698 bytes --]

diff --git a/src/git.cpp b/src/git.cpp
index 50e6dd3..8e9365c 100644
--- a/src/git.cpp
+++ b/src/git.cpp
@@ -427,7 +427,7 @@ void Git::setTextCodec(QTextCodec* tc) {
 	if (name == "Big5-HKSCS")
 		name = "Big5";
 
-	run("git repo-config i18n.commitencoding " + name);
+	run("git config i18n.commitencoding " + name);
 }
 
 QTextCodec* Git::getTextCodec(bool* isGitArchive) {
@@ -437,7 +437,7 @@ QTextCodec* Git::getTextCodec(bool* isGitArchive) {
 		return NULL;
 
 	QString runOutput;
-	if (!run("git repo-config --get i18n.commitencoding", &runOutput))
+	if (!run("git config --get i18n.commitencoding", &runOutput))
 		return NULL;
 
 	if (runOutput.isEmpty()) // git docs says default is utf-8

             reply	other threads:[~2011-05-09 21:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 21:15 Jonathan Rogers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-09 21:20 Qgit should use "git config" instead of "git repo-config" Jonathan Rogers
2011-05-09 21:36 ` Thiago Farina
     [not found]   ` <4DC85F33.4020305@socialserve.com>
     [not found]     ` <BANLkTimuWFSq_5_HkfgyXhRG6ysaVt_JwQ@mail.gmail.com>
     [not found]       ` <4DC8617F.70001@socialserve.com>
     [not found]         ` <BANLkTinsMTucb0Vj=rhkUNtv+hgsq2VfSg@mail.gmail.com>
     [not found]           ` <4DC87943.6010805@socialserve.com>
2011-05-10  0:11             ` Thiago Farina
2011-05-09 23:19 ` Jonathan Nieder
2011-05-09 23:35   ` Jonathan Rogers
2011-05-14  8:35   ` Marco Costalba
2011-05-14  8:56     ` Jonathan Nieder

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=4DC8595C.30600@socialserve.com \
    --to=jrogers@socialserve.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).