git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Qgit should use "git config" instead of "git repo-config"
@ 2011-05-09 21:15 Jonathan Rogers
  0 siblings, 0 replies; 8+ messages in thread
From: Jonathan Rogers @ 2011-05-09 21:15 UTC (permalink / raw)
  To: git

[-- 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

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* Qgit should use "git config" instead of "git repo-config"
@ 2011-05-09 21:20 Jonathan Rogers
  2011-05-09 21:36 ` Thiago Farina
  2011-05-09 23:19 ` Jonathan Nieder
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan Rogers @ 2011-05-09 21:20 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 136 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: 699 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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-14  8:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 21:15 Qgit should use "git config" instead of "git repo-config" Jonathan Rogers
  -- strict thread matches above, loose matches on Subject: below --
2011-05-09 21:20 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

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).