Skip to content

Commit

Permalink
Merge git://repo.or.cz/git-gui
Browse files Browse the repository at this point in the history
* git://repo.or.cz/git-gui:
  git-gui: Makefile - Handle $DESTDIR on Cygwin
  git-gui: add french glossary: glossary/fr.po
  git-gui: Refresh file status description after hunk application
  git-gui: Allow 'Create New Repository' on existing directories
  git-gui: Initial french translation
  git-gui: Improve German translation.
  git-gui: Updated Swedish translation after mailing list review.
  git-gui: Fix broken revert confirmation.
  git-gui: Update German translation
  git-gui: Update glossary: add term "hunk"
  • Loading branch information
Junio C Hamano committed Jan 21, 2008
2 parents a41acc6 + a028557 commit 105c21d
Show file tree
Hide file tree
Showing 11 changed files with 2,119 additions and 71 deletions.
5 changes: 3 additions & 2 deletions git-gui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ TCLTK_PATH_SED = $(subst ','\'',$(subst \,\\,$(TCLTK_PATH)))

gg_libdir ?= $(sharedir)/git-gui/lib
libdir_SQ = $(subst ','\'',$(gg_libdir))
libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir)))
libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir_sed_in)))
exedir = $(dir $(gitexecdir))share/git-gui/lib

GITGUI_SCRIPT := $$0
Expand All @@ -119,11 +119,12 @@ GITGUI_MACOSXAPP :=

ifeq ($(uname_O),Cygwin)
GITGUI_SCRIPT := `cygpath --windows --absolute "$(GITGUI_SCRIPT)"`
gg_libdir := $(shell cygpath --windows --absolute "$(gg_libdir)")
gg_libdir_sed_in := $(shell cygpath --windows --absolute "$(gg_libdir)")
else
ifeq ($(exedir),$(gg_libdir))
GITGUI_RELATIVE := 1
endif
gg_libdir_sed_in := $(gg_libdir)
endif
ifeq ($(uname_S),Darwin)
ifeq ($(shell test -d $(TKFRAMEWORK) && echo y),y)
Expand Down
50 changes: 22 additions & 28 deletions git-gui/lib/choose_repository.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,6 @@ method _write_local_path {args} {
}

method _git_init {} {
if {[file exists $local_path]} {
error_popup [mc "Location %s already exists." $local_path]
return 0
}

if {[catch {file mkdir $local_path} err]} {
error_popup [strcat \
[mc "Failed to create repository %s:" $local_path] \
Expand Down Expand Up @@ -417,41 +412,35 @@ method _new_local_path {} {
if {$p eq {}} return

set p [file normalize $p]
if {[file isdirectory $p]} {
foreach i [glob \
-directory $p \
-tails \
-nocomplain \
* .*] {
switch -- $i {
. continue
.. continue
default {
error_popup [mc "Directory %s already exists." $p]
return
}
}
}
if {[catch {file delete $p} err]} {
error_popup [strcat \
[mc "Directory %s already exists." $p] \
"\n\n$err"]
return
}
} elseif {[file exists $p]} {
error_popup [mc "File %s already exists." $p]
if {![_new_ok $p]} {
return
}
set local_path $p
}

method _do_new2 {} {
if {![_new_ok $local_path]} {
return
}
if {![_git_init $this]} {
return
}
set done 1
}

proc _new_ok {p} {
if {[file isdirectory $p]} {
if {[_is_git [file join $p .git]]} {
error_popup [mc "Directory %s already exists." $p]
return 0
}
} elseif {[file exists $p]} {
error_popup [mc "File %s already exists." $p]
return 0
}
return 1
}

######################################################################
##
## Clone Existing Repository
Expand Down Expand Up @@ -607,6 +596,11 @@ method _do_clone2 {} {
}
}

if {[file exists $local_path]} {
error_popup [mc "Location %s already exists." $local_path]
return
}

if {![_git_init $this]} return
set local_path [pwd]

Expand Down
2 changes: 2 additions & 0 deletions git-gui/lib/diff.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,7 @@ proc apply_hunk {x y} {
display_file $current_diff_path $mi
if {$o eq {_}} {
clear_diff
} else {
set current_diff_path $current_diff_path
}
}
4 changes: 3 additions & 1 deletion git-gui/lib/index.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ proc revert_helper {txt paths} {
set reply [tk_dialog \
.confirm_revert \
"[appname] ([reponame])" \
[mc "Any unstaged changes will be permanently lost by the revert."] \
"$query
[mc "Any unstaged changes will be permanently lost by the revert."]" \
question \
1 \
[mc "Do Nothing"] \
Expand Down
47 changes: 23 additions & 24 deletions git-gui/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: git-gui\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-11-24 10:36+0100\n"
"PO-Revision-Date: 2007-11-24 10:55+0100\n"
"PO-Revision-Date: 2008-01-15 20:33+0100\n"
"Last-Translator: Christian Stimming <stimming@tuhh.de>\n"
"Language-Team: German\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -272,7 +272,7 @@ msgstr "Neue Version"

#: git-gui.sh:1973 git-gui.sh:2357
msgid "Amend Last Commit"
msgstr "Letzte Version nachbessern"
msgstr "Letzte nachbessern"

#: git-gui.sh:1982 git-gui.sh:2317 lib/remote_branch_delete.tcl:99
msgid "Rescan"
Expand All @@ -284,15 +284,15 @@ msgstr "Zum Eintragen bereitstellen"

#: git-gui.sh:1994
msgid "Stage Changed Files To Commit"
msgstr "Geänderte Dateien zum Eintragen bereitstellen"
msgstr "Geänderte Dateien bereitstellen"

#: git-gui.sh:2000
msgid "Unstage From Commit"
msgstr "Aus der Bereitstellung herausnehmen"

#: git-gui.sh:2005 lib/index.tcl:393
msgid "Revert Changes"
msgstr "Änderungen revidieren"
msgstr "Änderungen verwerfen"

#: git-gui.sh:2012 git-gui.sh:2329 git-gui.sh:2427
msgid "Sign Off"
Expand Down Expand Up @@ -351,7 +351,7 @@ msgstr "Aktueller Zweig:"

#: git-gui.sh:2255
msgid "Staged Changes (Will Commit)"
msgstr "Bereitgestellte Änderungen (zum Eintragen)"
msgstr "Bereitstellung (zum Eintragen)"

#: git-gui.sh:2274
msgid "Unstaged Changes"
Expand Down Expand Up @@ -403,7 +403,7 @@ msgstr "Aktualisieren"

#: git-gui.sh:2566
msgid "Apply/Reverse Hunk"
msgstr "Änderung anwenden/umkehren"
msgstr "Kontext anwenden/umkehren"

#: git-gui.sh:2572
msgid "Decrease Font Size"
Expand All @@ -415,19 +415,19 @@ msgstr "Schriftgröße vergrößern"

#: git-gui.sh:2581
msgid "Show Less Context"
msgstr "Weniger Kontext anzeigen"
msgstr "Weniger Zeilen anzeigen"

#: git-gui.sh:2588
msgid "Show More Context"
msgstr "Mehr Kontext anzeigen"
msgstr "Mehr Zeilen anzeigen"

#: git-gui.sh:2602
msgid "Unstage Hunk From Commit"
msgstr "Aus der Bereitstellung herausnehmen"
msgstr "Kontext aus Bereitstellung herausnehmen"

#: git-gui.sh:2604
msgid "Stage Hunk For Commit"
msgstr "In die Bereitstellung hinzufügen"
msgstr "Kontext zur Bereitstellung hinzufügen"

#: git-gui.sh:2623
msgid "Initializing..."
Expand Down Expand Up @@ -914,11 +914,11 @@ msgstr "Neu..."

#: lib/choose_repository.tcl:93 lib/choose_repository.tcl:468
msgid "Clone Existing Repository"
msgstr "Projektarchiv kopieren"
msgstr "Projektarchiv klonen"

#: lib/choose_repository.tcl:99
msgid "Clone..."
msgstr "Kopieren..."
msgstr "Klonen..."

#: lib/choose_repository.tcl:106 lib/choose_repository.tcl:978
msgid "Open Existing Repository"
Expand Down Expand Up @@ -968,15 +968,15 @@ msgstr "Datei »%s« existiert bereits."

#: lib/choose_repository.tcl:463
msgid "Clone"
msgstr "Kopieren"
msgstr "Klonen"

#: lib/choose_repository.tcl:476
msgid "URL:"
msgstr "URL:"

#: lib/choose_repository.tcl:496
msgid "Clone Type:"
msgstr "Art der Kopie:"
msgstr "Art des Klonens:"

#: lib/choose_repository.tcl:502
msgid "Standard (Fast, Semi-Redundant, Hardlinks)"
Expand Down Expand Up @@ -1025,7 +1025,7 @@ msgstr "Kopien von Objekten/Info/Alternates konnten nicht erstellt werden: %s"
#: lib/choose_repository.tcl:690
#, tcl-format
msgid "Nothing to clone from %s."
msgstr "Von »%s« konnte nichts kopiert werden."
msgstr "Von »%s« konnte nichts geklont werden."

#: lib/choose_repository.tcl:692 lib/choose_repository.tcl:906
#: lib/choose_repository.tcl:918
Expand Down Expand Up @@ -1086,7 +1086,7 @@ msgstr "Verzeichnis »%s« kann nicht aufgeräumt werden."

#: lib/choose_repository.tcl:897
msgid "Clone failed."
msgstr "Kopieren fehlgeschlagen."
msgstr "Klonen fehlgeschlagen."

#: lib/choose_repository.tcl:904
msgid "No default branch obtained."
Expand Down Expand Up @@ -1440,11 +1440,11 @@ msgstr "Fehler beim Laden des Vergleichs:"

#: lib/diff.tcl:302
msgid "Failed to unstage selected hunk."
msgstr "Fehler beim Herausnehmen der gewählten Dateien aus der Bereitstellung."
msgstr "Fehler beim Herausnehmen des gewählten Kontexts aus der Bereitstellung."

#: lib/diff.tcl:309
msgid "Failed to stage selected hunk."
msgstr "Fehler beim Bereitstellen der gewählten Dateien."
msgstr "Fehler beim Bereitstellen des gewählten Kontexts."

#: lib/error.tcl:12 lib/error.tcl:102
msgid "error"
Expand Down Expand Up @@ -1494,17 +1494,16 @@ msgstr "»%s« hinzufügen..."
#: lib/index.tcl:381
#, tcl-format
msgid "Revert changes in file %s?"
msgstr "Änderungen in Datei »%s« revidieren?"
msgstr "Änderungen in Datei »%s« verwerfen?"

#: lib/index.tcl:383
#, tcl-format
msgid "Revert changes in these %i files?"
msgstr "Änderungen in den gewählten %i Dateien revidieren?"
msgstr "Änderungen in den gewählten %i Dateien verwerfen?"

#: lib/index.tcl:389
msgid "Any unstaged changes will be permanently lost by the revert."
msgstr ""
"Alle nicht bereitgestellten Änderungen werden beim Revidieren verloren gehen."
msgstr "Alle nicht bereitgestellten Änderungen werden beim Verwerfen verloren gehen."

#: lib/index.tcl:392
msgid "Do Nothing"
Expand Down Expand Up @@ -1730,7 +1729,7 @@ msgstr "Optionen konnten nicht gespeichert werden:"

#: lib/remote_branch_delete.tcl:29 lib/remote_branch_delete.tcl:34
msgid "Delete Remote Branch"
msgstr "Zweig im anderen Projektarchiv löschen"
msgstr "Zweig aus anderem Projektarchiv löschen"

#: lib/remote_branch_delete.tcl:47
msgid "From Repository"
Expand Down Expand Up @@ -1852,7 +1851,7 @@ msgstr "Neue Änderungen von »%s« holen"
#: lib/transport.tcl:18
#, tcl-format
msgid "remote prune %s"
msgstr "Entfernen von »%s« im anderen Archiv"
msgstr "Entfernen von »%s« aus anderem Archiv"

#: lib/transport.tcl:19
#, tcl-format
Expand Down
Loading

0 comments on commit 105c21d

Please sign in to comment.