Commit graph

90 commits

Author SHA1 Message Date
Alberto Fanjul efe545bc75 Deal correctly with stage/unstage of selection on new files 2022-09-01 21:56:29 +02:00
Alberto Fanjul 7f8203f2b2 Control errors 2022-02-15 01:10:33 +01:00
Alberto Fanjul 1bb7cfb4c3 default to text diff if mime type detection fails 2022-01-25 22:22:48 +01:00
Alberto Fanjul 2ba2cf8b68 Fix offset from parsing tags 2022-01-22 13:48:14 +01:00
Alberto Fanjul 098768374e Convert to text using gitattributes config 2021-12-27 11:32:49 +01:00
Xiaoguang Wang d720f8fbaf Side by side diff text renderers 2021-12-27 10:58:11 +01:00
Alberto Fanjul 9dfef5c1a6 Read setup for smart commits from git config
Allow to use a global config ~/.gitconfig from standard git config
Ignore color in subject (not allowed by Gtk.Label)
2021-12-27 10:10:33 +01:00
Alberto Fanjul c42e472a57 Put image renderer first on stack 2021-11-18 08:26:12 +01:00
Alberto Fanjul e1984e38bf Allow to diff images as text if its mime type supports it 2021-11-18 00:45:05 +01:00
Rico Tzschichholz 06bbf4da41 Fix inproper usages of silent casts 2021-02-22 13:08:08 +01:00
Rico Tzschichholz 5be434997a References of [GtkChild] fields is handled by GtkBuilder, type must be unowned 2021-02-22 12:50:43 +01:00
Gaurav Agrawal 4f7d98521b Support repository being null
repository can be null, so is not correct to access to its properties without checking it.
2019-06-21 07:51:44 +00:00
Gaurav Agrawal 79a10fbf87 Detect links in commit messages
Parse subject and body for a commit message and convert urls into links.

It is possible to read custom links config from ./git/config ini file:

example to parse issues and merge request for gitlab:

```
[gitg.custom-link "issues"]
   regexp=!([0-9]+)
   replacement=https://gitlab.gnome.org/GNOME/gitg/merge_requests/\1
   color = orange
[gitg.custom-link "merge.request"]
   regexp=#([0-9]+)
   replacement=https://gitlab.gnome.org/GNOME/gitg/merge_requests/\1
   color = green
```
2019-05-23 07:56:16 +02:00
jonykalavera f689d8b32d Do not use arrays as properties 2019-05-02 04:19:49 +02:00
Alberto Fanjul 7e17015566 Fix regexp to parse commit message 2018-10-14 18:18:01 +02:00
Rico Tzschichholz c2a4e98c3e Drop default value of non-automatic property for newer vala
https://bugzilla.gnome.org/show_bug.cgi?id=795500
2018-04-24 17:24:56 +02:00
Jesse van den Kieboom b2ed43d22d Add diff renderer for images 2016-08-27 12:26:43 +02:00
Jesse van den Kieboom 73d6b6e61b Show extended git message as part of the scrolled area
https://bugzilla.gnome.org/show_bug.cgi?id=769239
2016-08-19 09:05:37 +02:00
Jesse van den Kieboom 06c1c4a245 Cancel update diff on dispose 2016-08-18 13:58:07 +02:00
Jesse van den Kieboom 411c5743ce Improve support for binary file detection in diff views
https://bugzilla.gnome.org/show_bug.cgi?id=768650
2016-08-16 18:01:55 +02:00
Jesse van den Kieboom 3e5fc07c97 Reduce hot area for action bar to mitigate horizontal scrolling issue
https://bugzilla.gnome.org/show_bug.cgi?id=764003
2016-06-05 12:23:17 +02:00
Ignacio Casal Quinteiro 076e5df5b6 diff-view: get the selection notification from the renderer 2016-02-04 18:31:20 +01:00
Jesse van den Kieboom f291802654 Sepearate out diff renderer types 2016-01-04 15:04:31 +01:00
Jesse van den Kieboom a8eda0f312 Add diff highlight preference 2016-01-03 20:46:23 +01:00
Jesse van den Kieboom 0573e0756b Merge branch 'highlighting' 2015-12-31 13:04:06 +01:00
Jesse van den Kieboom b5efd19070 Preserve expanded state when reloading diff 2015-12-31 12:32:42 +01:00
Jesse van den Kieboom c8d8a0ef8c Add revealer with diff options 2015-12-30 23:29:19 +01:00
Jesse van den Kieboom a0dcca6257 Read highlighting from workdir when diffing against workdir 2015-12-23 00:59:48 +01:00
Jesse van den Kieboom 01b6823414 Enable experimental diff highlightingo 2015-12-23 00:12:45 +01:00
Jesse van den Kieboom f3b039e4d0 Cleanup properties 2015-12-22 21:47:18 +01:00
Jesse van den Kieboom c5ce8ba7a2 Expand last diff view to fill parent 2015-12-21 11:08:05 +01:00
Jesse van den Kieboom aad2027ceb Implement generating patchset from selection 2015-12-20 23:03:24 +01:00
Jesse van den Kieboom fe148bac39 Do not auto-unexpand diff in diff only mode 2015-12-20 19:10:53 +01:00
Ignacio Casal Quinteiro 2f636af5a2 diff-view: propagate has-selection from the diff view files 2015-12-18 16:08:43 +01:00
Ignacio Casal Quinteiro 2b61f0ae7a Handle selection on the commit view 2015-12-15 17:07:58 +01:00
Jesse van den Kieboom 321310bb23 Bind commit details parent button 2015-11-08 20:54:48 +01:00
Jesse van den Kieboom 2a170059a4 Add back diff options popover 2015-09-23 08:57:16 +02:00
Jesse van den Kieboom 6ddc1f7ee7 Remove additional unneeded scrolled window 2015-09-23 08:57:16 +02:00
Jesse van den Kieboom 048e32069b Small code style fix 2015-09-23 08:57:16 +02:00
Ignacio Casal Quinteiro e95db3db33 diff-view: hide expander with just one file 2015-09-23 08:57:16 +02:00
Ignacio Casal Quinteiro ca9295d997 Destroy previous file widgets when updating the diff 2015-09-23 08:57:16 +02:00
Jesse van den Kieboom 99eca15797 Bind wrap and tab_width properties 2015-09-23 08:57:16 +02:00
Jesse van den Kieboom 898af29264 Implement expand/collapse all 2015-09-23 08:57:15 +02:00
Jesse van den Kieboom 91c0854c54 Use same gutter width for lines in all hunks 2015-09-23 08:57:15 +02:00
Jesse van den Kieboom 5dc978d595 Small fixes to styling 2015-09-23 08:57:15 +02:00
Jesse van den Kieboom bd2e369b88 First step in replacing webkit with standard gtk+ 2015-09-23 08:57:15 +02:00
Jesse van den Kieboom 30aa7efb6a Add setting to wrap lines in the diff view
https://bugzilla.gnome.org/show_bug.cgi?id=742031
2015-08-09 20:11:47 +02:00
Jesse van den Kieboom 043431303d Use expand/collapse all text instead of icon 2015-08-07 09:22:38 +02:00
Jesse van den Kieboom 62eb3fc7e6 Add setting to collapse all files in diff by default 2015-08-07 09:11:30 +02:00
Jesse van den Kieboom bb22c05672 Make use of gravatar optional and a preference setting
https://bugzilla.gnome.org/show_bug.cgi?id=744159
2015-07-31 08:47:59 +02:00