Commit graph

267 commits

Author SHA1 Message Date
Jesse van den Kieboom 9c08a434ad Added gitg-assert.vapi to makefile 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom ecdde804b8 Implemented stage, unstage, delete and revert on files 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom ce94520b2e Fix test name 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 93fe0d68bc Added assert macros 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 0f6e886bc4 Check if all files were seen 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom c6d97d8c4c Update for new lookup 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom d67a4820ff Added async thread convenience class 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 632959b6af Override repository lookup using generics 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 77742a2792 Added tests for libgitg 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 82e3ff6d2d Cache stage status files enumerator 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 9c23d9f829 Allow fetching all status files in one time 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom 290aba1c2c Make stage classes objects 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom e088612650 Separated stage status enumerator in separate file 2013-07-03 09:50:58 +02:00
Jesse van den Kieboom b7306286a3 Initial stage class with enumeration of status files 2013-07-03 09:50:58 +02:00
Ignacio Casal Quinteiro 306ef8bfa4 Fix for latest api changes in libgit2-glib 2013-07-02 09:18:49 +02:00
Manish Sinha 423da7de8f Implement i18n support in libgitg
Fix #703167 and #699635 by implementing i18n support using gettext.
2013-06-30 12:41:39 +02:00
Jesse van den Kieboom e649026751 Use AM_CPPFLAGS instead of INCLUDES 2013-06-29 14:48:57 +02:00
Ignacio Casal Quinteiro c19cfebf4a dashview: use gobject like construction 2013-06-26 09:18:30 +02:00
Ignacio Casal Quinteiro 86e45c8087 dashview: use normal casting instead of "as" 2013-06-26 09:08:36 +02:00
Ignacio Casal Quinteiro 2a3ceafa67 dash view: use a template for the row 2013-06-25 19:24:12 +02:00
Sindhu Sundar b5644b2499 Renamed references_foreach to references_foreach_name 2013-06-24 18:50:08 +02:00
Ignacio Casal Quinteiro 73695b6b89 Missing indent 2013-06-24 08:09:40 +02:00
Paolo Borelli 159cc171a9 Remove redundant namespacing
Now gtk widgets are in the same Gitg namespace
2013-06-23 21:14:16 +02:00
Ignacio Casal Quinteiro 8252238630 Move files from libgitg-gtk to libgitg 2013-06-23 20:39:59 +02:00
Paolo Borelli 7c160ffa7b Merge CommitModel in a single class
Simplifies hierarchy in preparation for merging libgitg and libgitg-gtk
2013-06-23 17:00:35 +02:00
Sindhu S efac068cfe Fix diff view for first commit, bug 702259 2013-06-21 17:05:17 +05:30
Ignacio Casal Quinteiro 1b7a0f428c Mark delegate as owned 2013-06-06 09:21:07 +02:00
Techlive Zheng cde980872a Use the same color for every long-runing lane
Signed-off-by: Ignacio Casal Quinteiro <icq@gnome.org>
2013-05-17 13:23:46 +02:00
Techlive Zheng d3cb803007 Respect the mainline of the merges
Normally the 1st parent of a commit is the branch we're merging _into_,
so if you keep this on the left then you can always read a merge as
right-to-left. Previous it seems to be a bit random.

By comparing the position a 'lane' in the 'lanes', the earier a lane is
created, the more priority it has.

Signed-off-by: Ignacio Casal Quinteiro <icq@gnome.org>
2013-05-17 13:23:30 +02:00
Sindhu S 006943c323 Better fix for relative time in Gitg
Resolves edge cases of relating to difference in minutes.
Treats minutes and hours in the way for rounding off.
Cleans code readability.
2013-05-15 07:58:14 +05:30
Sindhu S 314471d20f Fix for singular and plural relative time format.
Use TimeSpan class to calculate difference epoch time.
Commits as old as an hour now, read 'An hour ago'.
Commits older than an hour now, read 'N hours ago'.
Commits as old as a day now, read "A day ago".
Commits as older than a day now, read 'N days ago'.
2013-05-14 20:01:48 +05:30
Sindhu S 13795da994 Fix date format in commit history view
If commits are in current calendar year, show date in format
%h %e, %I:%M %P. If commits are not in current calendar year,
show full year (that is, with century) information using %Y.

Add comment on fixing code to make Gitg honour user locales.
https://bugzilla.gnome.org/show_bug.cgi?id=699196
2013-05-10 18:42:52 +05:30
Sindhu S 716fed5384 Fix relative time in history view; bug 698830 2013-04-27 07:38:14 +05:30
Sindhu S 2aaf706e57 Change camel case var timeZone to gitg style 2013-04-23 16:36:40 +05:30
Sindhu S 6eb08ef039 Show commit author's time and zone in commit log and diff view
Remove obsolete code.
2013-04-23 06:47:45 -04:00
Ignacio Casal Quinteiro 825a77af42 Typos 2013-03-25 08:29:37 +01:00
Ignacio Casal Quinteiro 0da037c746 Check libgit2 has been built with threading support 2013-03-25 08:27:25 +01:00
Paolo Borelli 1ec60b3c84 Set header bar title
Set the header title to the current repo name and also refactor code to
avoid duplication with the dash
2013-03-24 12:32:48 +01:00
Ignacio Casal Quinteiro 6531c14d34 Show readable time in the commit list 2013-03-17 18:46:58 +01:00
Garrett Regier 32dca4b5fe Fix vapi generation 2013-03-17 03:01:53 -07:00
Ignacio Casal Quinteiro cba6d104ca Factor out get_diff method 2013-02-21 17:41:25 +01:00
Ignacio Casal Quinteiro 6ee2438d57 Use header bar 2013-02-20 16:43:11 +01:00
Ignacio Casal Quinteiro 325c1306d9 Fix for api breaks in libgit2-glib 2013-02-13 12:42:20 +01:00
Jesse van den Kieboom 3cbf810bdf Notify changes in commit model repository property 2012-10-30 11:11:33 +01:00
Ignacio Casal Quinteiro d81a864dbc Use AM_VALAFLAGS 2012-10-17 08:38:37 +02:00
Jesse van den Kieboom 5a1efe6b7f Added wrappers for GgitRef and GgitBranch 2012-10-16 20:26:12 +02:00
Jesse van den Kieboom c4b196d558 Added sort mode for commit model 2012-07-19 10:27:38 +02:00
Jesse van den Kieboom eff97b8a12 Automatically select branch in history 2012-07-18 09:35:53 +02:00
Jesse van den Kieboom 2701de49ea Use vapi instead of gir internally 2012-07-12 20:52:07 +02:00
Jesse van den Kieboom 0be3e406b6 Updated BUILT_SOURCES fixing git ignores 2012-07-12 10:13:20 +02:00
Ignacio Casal Quinteiro aa4432a5b2 Fix critical 2012-07-07 11:58:19 +02:00
Jesse van den Kieboom 6a2410aadd Properly resolve tag objects that point to commits 2012-07-06 19:36:47 +02:00
Jesse van den Kieboom 8a55f23623 Enable vala debugging if requested 2012-07-06 19:36:06 +02:00
Jesse van den Kieboom 53d41e0321 Set sort mode after resetting walker 2012-07-06 18:50:48 +02:00
Jesse van den Kieboom 91a5c8f0ea Fix cancelling logic of commit model 2012-07-06 18:50:47 +02:00
Jesse van den Kieboom 69ad1afc97 Depend on glib 2.32 for threads 2012-07-06 18:50:47 +02:00
Jesse van den Kieboom 33f1075d9a Added GPL license stub in all vala files 2012-07-02 20:02:34 +02:00
Ignacio Casal Quinteiro f431d764c0 Call ggit_init 2012-05-29 17:57:17 +02:00
Ignacio Casal Quinteiro 4e3601e920 Last element is null and we don't get an error to catch anymore 2012-05-28 22:44:30 +02:00
Jesse van den Kieboom 09fdc390b0 Fix various autotools dependencies for building without installing 2012-05-04 17:10:10 +02:00
Jesse van den Kieboom 431ea91e9d Set correct length after resize 2012-04-25 00:16:26 +02:00
Jesse van den Kieboom 03f8446283 Can't use GLib.SList as property type 2012-04-25 00:01:27 +02:00
Jesse van den Kieboom e6b79289a4 Call finish walk async callback in idle 2012-04-22 18:41:39 +02:00
Jesse van den Kieboom a8221e6058 Fixed correct reftype for ref 2012-04-22 18:36:32 +02:00
Jesse van den Kieboom f94927b42e Do not use Gitg inside namespace 2012-04-22 15:13:24 +02:00
Jesse van den Kieboom 4ad1c3c3ad Added get/set working on ref 2012-04-22 15:12:41 +02:00
Jesse van den Kieboom b4b57f0821 Added RefState stored in ref 2012-04-22 15:12:31 +02:00
Jesse van den Kieboom 57301f326f Added refs_for_id to repository 2012-04-22 15:12:00 +02:00
Jesse van den Kieboom 69cc534b51 Fix tag and lanes for commit 2012-04-22 15:11:43 +02:00
Jesse van den Kieboom 1c195ec60c Construct lanes while loading commit model 2012-04-22 15:11:21 +02:00
Jesse van den Kieboom 92e5f537af Updates to calculating lanes 2012-04-22 15:11:07 +02:00
Jesse van den Kieboom 654b27ba66 Added r/g/b accessors for color 2012-04-22 15:10:09 +02:00
Jesse van den Kieboom 85cb74a335 Added virtual methods for started, update and finished 2012-04-15 14:58:36 +02:00
Jesse van den Kieboom 92a1cc6696 Set sort mode before setting include/exclude
Setting the sort mode will reset the walker and thus would
undo setting include/exclude
2012-04-15 14:58:36 +02:00
Jesse van den Kieboom c7adb66718 Added getting/setting include/exlude oids for model 2012-04-15 14:58:36 +02:00
Jesse van den Kieboom 195bf03034 Added setting/getting repository of model 2012-04-15 14:58:36 +02:00
Jesse van den Kieboom 4e21da2ae9 Fixed threading issues with commit model 2012-04-15 14:58:32 +02:00
Jesse van den Kieboom a74c5661a6 Initial porting to vala 2012-04-14 13:46:39 +02:00
Jesse van den Kieboom 771cb4a19d Fix segvs in arguments and environment parsing in GitgCommand 2011-08-19 23:21:47 +02:00
Jesse van den Kieboom 1f8ca04517 Set working directory, GIT_DIR and GIT_INDEX_FILE when running hooks 2011-08-19 23:15:52 +02:00
Jesse van den Kieboom 92328760b3 Allow redirection of stderr to stdout in shell/runner/io 2011-08-19 22:49:48 +02:00
Jesse van den Kieboom 8f84b02d7f Added debugging of runner commands 2011-08-19 21:03:39 +02:00
Jesse van den Kieboom e9ca2489f9 Run commit-msg hook when commiting 2011-08-19 19:11:21 +02:00
Jesse van den Kieboom 31bc1fe81d Fix parsing changed file lines with spaces in filename 2011-08-06 19:00:15 +02:00
Jesse van den Kieboom e633e1b768 Improved format patch name mimicking git
Multiple spaces are now only replaced with one hyphen.
Forward slashes are also replaced by hyphens now.
2011-08-06 16:31:12 +02:00
Jesse van den Kieboom c5b60b9e7f Added pre-commit and post-commit hook execution 2011-08-05 17:33:26 +02:00
Garrett Regier 96557d3f9f Fix race condition in the line parser 2011-07-23 01:01:35 -07:00
Jasper Lievisse Adriaanse 3f8f77d2b1 Fix build on OpenBSD:
- re-order headers so system headers are included before local headers
- rename std{in,out} to g_std{in,out} to prevent symbol redefinitions

https://bugzilla.gnome.org/show_bug.cgi?id=647629
2011-07-21 16:05:20 +02:00
Jesse van den Kieboom b637b0d50c Fix ENABLE_DEBUG use in Makefile.am 2011-03-28 14:22:54 +02:00
Jesse van den Kieboom f5358d7c3d Fix --disable-debug 2011-03-28 14:22:48 +02:00
Jesse van den Kieboom e3ab4e78ff Added better debugging for gitg-config 2011-03-27 14:05:07 +02:00
Jesse van den Kieboom 7809507fd6 Added missing set_auto_utf8 2011-03-27 14:05:01 +02:00
Jesse van den Kieboom 44ceac4e8e Disable auto-utf8 for repository loading
git already converts to utf-8 and having the double encoding will make things
twice as slow due to unnecessary copies
2011-03-27 14:04:55 +02:00
Jesse van den Kieboom 5630872a8c Preserve line endings in gitg config 2011-03-25 09:42:16 +01:00
Jesse van den Kieboom 52f1355ab8 Fixed debug macro to accept only format string 2011-03-25 09:42:10 +01:00
Jesse van den Kieboom f07d9d708f Add UTF8 as the first candidate encoding 2011-03-25 09:42:05 +01:00
Jesse van den Kieboom 9a98434dc2 Improved debugging 2011-03-25 09:41:58 +01:00
Ignacio Casal Quinteiro 9ba57897ee Chain up on constructed inconditionally. 2011-02-22 17:41:45 +01:00
Ignacio Casal Quinteiro 9238a7fd8d Fix warnings spotted by gcc 4.6. 2011-02-22 17:36:28 +01:00
Ignacio Casal Quinteiro 895d65ff2b Use g_(s)list_free_full. 2011-02-09 11:22:23 +01:00
Ignacio Casal Quinteiro 16c5e18ec3 Chain up in constructed override if needed. 2011-01-12 17:19:43 +01:00
Jesse van den Kieboom ee4be20081 Fix comparison of correct enum
Patch by Anders Kaseorg, fixes bug #638050
2011-01-11 13:11:55 +01:00
Jesse van den Kieboom 4e05d3d885 Fixed getting/setting global git configuration 2011-01-08 13:57:47 +01:00
Garrett Regier d526a900ee Use G_DEFINE_BOXED_TYPE 2011-01-04 09:08:59 -08:00
Jesse van den Kieboom f8cf3547d3 Switch command v/va function names111 2010-11-06 15:08:36 +01:00
Jesse van den Kieboom 32840505d3 Added gpl 2010-11-06 14:53:26 +01:00
Jesse van den Kieboom f9ef65b59d Improved GitgRunner/GitgCommand/GitgShell 2010-11-06 12:21:52 +01:00
Jesse van den Kieboom 2d95ef73ed Improved charset conversion (fixes #623466)
This adds better support for charset conversion and preservation of
line endings. Most code was copied from gedit (GeditEncoding and
GeditSmartCharsetConverter)
2010-10-23 18:41:26 +02:00
Jesse van den Kieboom 293cc5c3dc Code style cleanup for gitg-runner 2010-10-23 16:29:50 +02:00
Jesse van den Kieboom 868baebdc4 Add committer info 2010-06-07 00:14:31 +02:00
Ignacio Casal Quinteiro aaa332446a Bind more repository properties to preferences. 2010-06-01 22:15:50 +02:00
Ignacio Casal Quinteiro cfea5c96d9 Fix typo 2010-05-31 09:21:48 +02:00
Ignacio Casal Quinteiro 484f24ea7d Use the right i18n include. 2010-05-31 01:47:44 +02:00
Jesse van den Kieboom 36f2b06482 Cleanup gitg-repository code style 2010-05-30 23:55:28 +02:00
Jesse van den Kieboom ade8a28d70 Removed spaces in strings introduced by auto formatting 2010-05-30 23:55:18 +02:00
Jesse van den Kieboom 1cec32b01a Code cleanup, lib fixes 2010-05-30 23:37:21 +02:00
Ignacio Casal Quinteiro 2796d4caf6 Move the backend part of gitg into a libgitg library. 2010-05-30 22:27:49 +02:00