Commit Graph

569 Commits

Author SHA1 Message Date
Benjamin Kramer df545314f5 HistoryView: Make table header large enough so the text doesn't shift
"Committer" was too big. Use EMs so font size changes won't bother us.
2009-03-25 20:53:36 +01:00
Benjamin Kramer a762ae5219 HistoryView: Show commit date 2009-03-25 20:53:35 +01:00
Benjamin Kramer 89128794c9 HistoryView: Show committer if his name differs from the author's 2009-03-25 20:53:10 +01:00
Benjamin Kramer 5ff9620ec2 HistoryView: Factor out email formatting
The patches to show the committer's name depend on this.
2009-03-25 20:52:42 +01:00
Pieter de Bie f3c131ecde Display revision in the About Dialog
We do this by preprocessing the Info.plist file
and adding a prefix header with the current revision
#define'd. This seems to be the most reliable way,
unfortunately
2009-03-24 15:00:38 +00:00
Pieter de Bie af40162a83 gitx CLI: Add option to find git path 2009-03-24 14:55:15 +00:00
Pieter de Bie b4d93988ed Use DWARF symbols for Release build
This should ship binaries with debugging symbols in them.
I'm not sure if there's a negative side effect somewhere,
but this should make parsing the crash logs a lot easier :)
2009-03-24 01:12:36 +00:00
Johannes Gilger f4f505c25e PBGitCommitController: Fix unstaging of last hunk
When unstaging the last cached hunk of a file, the file remained in the
"Staged Changes" column, with the notice "This file has no more changes"
and the "Unstage"-button remaining in the diff-view.

This fixes this behaviour by correctly distinguishing files in the
files-array not only by filename but also by unstaged/cached status,
s.t. for a file with unstaged and cached changes, there are two entries
in the files-array.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-03-24 00:48:25 +00:00
Pieter de Bie 06d6da1fc5 Merge commit '3e21d041efb95b6358c749e021bf5ddbcc05bcd7'
* commit '3e21d041efb95b6358c749e021bf5ddbcc05bcd7':
  Info.plist: Make GitX open any file/folder on drop
  diffHighlighter: Correctly match unified diff hunks
  diffHighlighter: Fix indent-after-stagebutton bug
2009-03-24 00:48:17 +00:00
Nick Zitzmann 8a6d55dbfe Add a "New..." option to the Main Menu to create a local
repository
2009-03-24 00:36:46 +00:00
Pieter de Bie c70eff74e8 IndexController: Use diff-files instead of diff
Apparently this fixes some issue for Vincent Kergonna.
I hope this helps! :)
2009-03-24 00:25:20 +00:00
Pieter de Bie e2e868da5d Redo the changes from 55d57ba076
This commit apparently corrupted the Preferences file.
I fixed it by taking the earlier version and manually adding
the changes again.
2009-03-23 23:54:54 +00:00
Pieter de Bie d38c195149 Fix moving of refs
This was seriously broken after we moved to a hash
to store the refs in ddc9ae7654. Apparently nobody
noticed this earlier.

We fix it by doing the right thing. Don't remove the array
if it's empty, but check in the drawing if we really have refs.
2009-03-23 23:33:43 +00:00
Pieter de Bie 8616b38eb3 WebHistoryView: Correctly show refs when reloading
We assigned a function instead of the result of that function,
which broke the refreshing
2009-03-23 23:08:27 +00:00
Michael Stephens b48469da93 Fix saving tree to folder 2009-03-23 23:01:51 +00:00
Pieter de Bie 2b8d378f13 Index: Don't rearrange on every object
We used to change the PBFile status every time we found a 
similarly named file. Because the unstagedFilesController
had a filter and sort predicate for these, the array was
rearranged every time an existing file was found. This quickly
leads to stalling.

We fix it by temporarily disabling the automatic rearranging
and then reenabling it when we're finished.
2009-03-23 22:43:48 +00:00
Johannes Gilger 3e21d041ef Info.plist: Make GitX open any file/folder on drop
This extends the Info.plist, allowing any file/folder to be dropped onto
the GitX dock-icon.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-02-21 23:38:11 +01:00
Johannes Gilger 51478449ec diffHighlighter: Correctly match unified diff hunks
Hunks in unified diffs are usually in the form of @@ -a,b +x,y @@, but
sometimes the ,b (i.e. the range) can be ommitted, in which case our
code didn't match the hunk-header at all, resulting in line-numbers
off-by-one in commit-view.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-02-21 23:02:14 +01:00
Johannes Gilger 58990fc318 diffHighlighter: Fix indent-after-stagebutton bug
- display context lines in own <div>.
- Stagebutton no longer is float: left.

This fixes ticket #104

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-02-21 22:33:28 +01:00
Johannes Gilger b18d9af2aa ApplicationController: Make sure gitx installation-path exists
When trying to install the gitx symlink into /usr/local/bin, GitX would
fail if the directory /usr/local/bin didn't exist yet. We simply call
mkdir -p in advance, which only creates the directory if doesn't exist.
2009-02-08 13:33:16 +01:00
Johannes Gilger 308a5af02f diffHighlighter: Empty diffs and mode-changes
When there is no diff to display (i.e. empty-file mode-changes, deletion
or creation) we don't draw a diff-box (div) but just list the filename.

Also fixes a bug with mode-changes not displaying new-mode.
2009-02-07 16:31:03 +01:00
Johannes Gilger f23b3c498f diffHighlighter: Display removed, but empty, plain-text files 2009-02-07 15:04:41 +01:00
Johannes Gilger 20b5fa6214 diffHighlighter: Display created, but empty, plain-text files
Plain-text files which have been created are not diffed against
/dev/null, but have a "new file mode" line. This patch catches this case
and also highlights that the control-flow in diffHighlighter is less
than optimal.
2009-02-07 13:47:06 +01:00
Johannes Gilger 06f675b899 PBGitWindowController: Default to historyViewController for bare repo
If the repository we're working on is bare and through some default
value we are asked to display the commit-view, we simply change it back
to history.
2009-02-06 21:09:03 +01:00
Owen Yamauchi 82b6efc1d7 Fix ticket #84: disable commit view for bare repos 2009-02-06 21:09:03 +01:00
Owen Yamauchi 64dfd99089 Make finding the history/commit selector more robust.
Shouldn't assume that the selector is the first item in the toolbar; the user
could have moved it.
2009-02-06 21:09:03 +01:00
Douglas Creager e5104b4069 Use <pre> tag for commit message so that whitespace displays correctly
The contents of the commit message is inserted into the “#message” tag
directly.  If we use a <div> tag, then any whitespace in the commit
message will get collapsed down into a single space as HTML requires.
Since the CSS stylesheet calls for a monospaced font, it makes sense
to use a <pre> tag instead, so that whitespace will be preserved.
2009-02-06 21:09:03 +01:00
Johannes Gilger e1f3a33a44 PBGitCommitController: Only show index if we have a workdir 2009-02-06 21:09:03 +01:00
Johannes Gilger 8bed6191f5 diffHighlighter.js: Bail out early for deleted binary/image files
If we have an image (png,jpg,...) which was deleted we cant display a
diff or the file itself anymore. In this case the entry in the file-list
is enough.
2009-02-06 21:09:01 +01:00
Johannes Gilger 7cb4930389 diffHighlighter: Fix display for deletion of binary files
When a binary file is deleted the second filename doesn't start with b/
but is "/dev/null". We didn't account for that.
2009-02-06 21:08:01 +01:00
Johannes Gilger ef8317bcb0 Allow email-addresses without the @-sign
These addresses are perfectly valid in a local scope, and GitX shouldn't
fail anyway.
2009-02-06 21:08:01 +01:00
Johannes Gilger bb8a615b22 Recognize file-mode changes correctly and display them
diffHighligher.js: Recognize file-mode changes and mark them
history.js: Extend newfile callback by parameters for mode
history.css: Adjust changed-span to accomodate "mode changed"
2009-02-06 21:07:57 +01:00
Pieter de Bie cb40cf6111 GitX 0.6.1 v0.6.1 2009-01-29 23:56:31 +00:00
Anders Carling 67d9ff3262 WebController: Set JS Controller after reloading the view
The WebKit delegate method didStartProvisionalLoadForFrame:
is not called when reloading the frame. This caused the
webviews to appear empty.

We fix it by using a delegate method which is called each
reload, as suggested by weinig in #webkit.

This fixes Lighthouse bug #81.
2009-01-29 23:49:06 +00:00
Johannes Gilger 28127626c1 User manual: small typos/factual errors/missspellings
Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
2009-01-28 20:39:16 +00:00
Pieter de Bie a94981f359 RevList: Don't rely on the presence of %x00
The %x00 pretty specifier was only added in git v1.5.6.
This is quite new, so we try to support older git clients in
GitX (v1.5.4 and up). In order to do this, we need to use another
specifier.

Unfortunately, we can't use a real \0 in our argument, as that just
cuts off our argument string. So we get the next best thing -- we use
\01 :).
2009-01-28 20:30:56 +00:00
Pieter de Bie ba80ae0311 Use new help page URL
Some while ago, gitx changed its homepage from
frim.nl/gitx to gitx.frim.nl, and in the process the user
manual was moved. Though there is still a redirect in place,
it's nicer for the user if we go to the correct page at once.
2009-01-28 20:23:26 +00:00
Pieter de Bie ab2ddd87cc CommitView: Show linebreaks with new files
Just before releasing 0.6, I cleaned up some old code.
In c6895105e2 (Remove old code in Commit/Diff views),
I removed some pre and code tags, causing new files
in the commit view to be displayed without line breaks
2009-01-28 20:21:06 +00:00
Pieter de Bie b6693657d9 Update user manual for 0.6 2009-01-26 21:43:58 +00:00
Pieter de Bie e4ed099443 Update site to GitX v0.6 2009-01-26 21:37:05 +00:00
Pieter de Bie dbaa66cf36 GitX Version 0.6 v0.6 2009-01-26 21:31:01 +00:00
Pieter de Bie b65170189a Merge branch 'pu/jg/rename_detection' (early part)
* 'pu/jg/rename_detection' (early part):
  Diff: also show a binary when it's deleted
  DiffHighlighter: Properly show binary changes
  HistoryView: Prettify the file list
  Show renames changes by default
  history.css, history.js: Color changed/deleted/added/moved appendices
  Rudimentary support for renames/deletions of files
2009-01-26 21:30:58 +00:00
Pieter de Bie 1dc649bf09 Diff: also show a binary when it's deleted 2009-01-26 21:18:29 +00:00
Pieter de Bie c6895105e2 Remove old code in Commit/Diff views
We used to put diffs inside a <pre><code> block,
but no longer need to do that as we now use tables anyway.
We changed the code for the History view, but not for the
other two views.
2009-01-25 22:06:56 +00:00
Pieter de Bie b44b0df75a DiffHighlighter: Properly show binary changes
Binary changes don't have a +++ / --- line, just like
a 100% rename doesn't show any changes. We work around
this in much the same way -- by reading the filenames
for that specific case.
2009-01-25 21:45:28 +00:00
Kim Does cf14746bda HistoryView: Prettify the file list 2009-01-25 21:00:25 +00:00
Pieter de Bie 87fae3f03e CommitView: Remove a stray label 2009-01-25 18:29:27 +00:00
Pieter de Bie b31eee4ba7 CommitView: Make multiselect a bit prettier 2009-01-25 18:20:48 +00:00
Pieter de Bie 29641f3746 HistoryView: Use the realSha for the searchfield predicate
This still used the old sha value that we used before switching
to libgit2, and thus caused  searching for sha's to fail
2009-01-25 17:54:19 +00:00
Pieter de Bie 22f4ac3f13 Show renames changes by default
Now that we have support to show file renames, we can
enable it by default in all the diffs that we use.
2009-01-25 17:46:23 +00:00