summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-11-29file/git-util.c (git_repository_open_ext): use directories instead of reg. filestryWerner Almesberger1-2/+47
Reported by Alvaro Gamez Machado.
2016-11-29gui/gui.c (add_hist): check that we have a commit before trying to print itWerner Almesberger1-1/+3
Reported by Alvaro Gamez Machado. Also point out memory leak.
2016-11-29TODO, file/git-file.c: defer eeshow hw/neo900.pro issueWerner Almesberger2-0/+17
2016-11-29gui/gui.c (add_hist): indicate (if verbose) when we begin processing a revisionWerner Almesberger1-0/+2
2016-11-29file/file.c (file_open), git-file.c (try_related): more diagnosticsWerner Almesberger2-1/+12
2016-11-28file/git-hist.c (vcs_git_try): additional diagnosticeWerner Almesberger1-2/+6
To debug mysterious lack of history experienced by "ceene".
2016-11-28gui/sheet.c (sheet_key): check if we have history before calling show_historyWerner Almesberger1-2/+4
Reported by "ceene".
2016-11-28gui/sheet.c (have_history): make check if we have a VCS history reusableWerner Almesberger1-1/+7
2016-11-21gui/index.c: also show the sheet number when hovering over thumbnailWerner Almesberger1-12/+59
2016-11-20gui/gui.c (sheets): move over from index.cWerner Almesberger3-9/+10
2016-11-20gui/gui.c (current_sheet): de-duplicate sheet selection logicWerner Almesberger3-15/+13
2016-11-13file/git-file.c (select_repo): the root of relative paths is "." not "/"Werner Almesberger1-4/+14
2016-11-13file/file.c (try_related): don't return NULL if function is "bool"Werner Almesberger1-1/+1
2016-11-03gtx/cro.c, main/eeplot.c: new option -n to include sheet numbers in PDF TOCWerner Almesberger2-3/+14
2016-11-03gfx/pdftoc.c (pdftoc_title), pdftoc.h: support printf-style formatWerner Almesberger2-3/+7
2016-11-03main/eetest.c (main): return zero, for gcc that doesn't trust "noreturn"Werner Almesberger1-0/+2
Reported by Martin Borgert.
2016-11-03Revert "gui/gui.c (run_gui): we no longer need tge gtk-label-select-on-focus ↵Werner Almesberger1-0/+6
hack" This reverts commit 52050667b55c9b8f75a61ecaf39422b5ef6d0bbf. This is needed for GtkLabel (see previous commit).
2016-11-03Revert "gui/view.c: use GtkTextView instead of GtkLabel"Werner Almesberger1-25/+13
This reverts commit d849ee95ff7e2ff2ccf0d6ff98b42a3a7f9a383d. gtk_text_buffer_insert_markup is too new to be supported by major distributions (e.g., Debian "stable"), so we can't use it :-( Reported by Martin Borgert.
2016-11-01web/index.html: make introduction easier to parseWerner Almesberger1-3/+3
2016-10-31gui/gui.c (run_gui): we no longer need tge gtk-label-select-on-focus hackWerner Almesberger1-6/+0
... since we now display text with GtkTextView instead of GtkLabel.
2016-10-31web/wt-history.fig, wt-diff-old.fig: add "Hover+V for commit window"Werner Almesberger2-0/+8
2016-10-30gui/view.c: use GtkTextView instead of GtkLabelWerner Almesberger1-13/+25
This allows us to suppress the cursor, which confusingly suggested editability of the text. Also the default background color is nicer. Added left and right margins, too.
2016-10-30gui/history.c (history_key): add invocation of help (with H or Help)Werner Almesberger1-2/+7
2016-10-30README, help.txt: document "V" for commit viewerWerner Almesberger2-0/+2
2016-10-30gui/sheet.c (sheet_key), history.c (history_key): limit "v" to commit hoverWerner Almesberger2-2/+6
I.e., we can use it for something else of not hovering over a commit. Also fixed a missing "break".
2016-10-30gui/view.c (view_open): align label with the upper left cornerWerner Almesberger1-0/+2
2016-10-30file/git-hist.c (vcs_git_long_for_pango): optionally show full commit messageWerner Almesberger4-6/+8
2016-10-30gui/: "v" opens a viewer window for commit messages (WIP)Werner Almesberger4-2/+64
2016-10-30file/git-hist.h, git-hist.c (vcs_git_summary, ...): make vcs_hist "const"Werner Almesberger2-6/+6
2016-10-30file/git-hist.c (vcs_git_long_for_pango): use author information, not committerWerner Almesberger1-4/+2
2016-10-30gui/help.c: general viewer windowWerner Almesberger1-69/+12
2016-10-30gui/view.c, view.h, Makefile: generalized handling of viewer windowsWerner Almesberger3-1/+159
2016-10-30gui/help.c, help.html, Makefile, README: remove WebKit supportWerner Almesberger4-107/+1
We didn't normally use it, if using it, it would have made things quite slow, and having to support it would complicate generalizing viewer windows (which will happen soon).
2016-10-30gui/help.c (help_content), gui.c: make the help text copiableWerner Almesberger2-0/+7
This also requires globally setting gtk-label-select-on-focus to FALSE in order to avoid the text already being selected when opening the window.
2016-10-29file/: implement caching version of git_repository_open_ext for libgit2 < 0.22Werner Almesberger4-3/+41
In version 0.22, this was added: Share open packfiles across repositories to share descriptors and mmaps Unfortunately, some people are unable to upgrade to modern libraries. Without FD sharing, eeshow may run out of file descriptors when loading large repositories. This commit adds a cache to reduce the number of times a repository is opened, which may in turn reduce the number of open files.
2016-10-29main.h (usage): add __attribute__((noreturn))Werner Almesberger1-1/+1
This way, older versions of gcc will not complain about eetest's "main" ending with a call to "usage".
2016-10-29file/git-file.c: add cache for remembering commits we've already visitedWerner Almesberger1-6/+49
This brings the time for eeplot -d "%s" HEAD:neo900.pro -o neo900.pdf down from 100 s to about 1.2 s, only slightly longer than the 0.75 s plotting takes without date processing.
2016-10-28README: document sheet date overridingWerner Almesberger1-0/+48
2016-10-28kicad/pl-render.c (format_date): fix handling of %} in argumentWerner Almesberger1-7/+7
2016-10-28gui/clipboard.h: also forgot to commit (again reported by Martin Borgert)Werner Almesberger1-0/+18
2016-10-28file/git-file.c (vcs_git_time): only retrieve time if we may use it (HACK)Werner Almesberger2-1/+16
Rough performance comparison: eeplot HEAD:neo900.pro -o neo900.pdf Without -d 0.750 s -d "%s", search until blob no longer in tree 1.40 min (x 112) -d "%s", search to bottom 21 min (x 15)
2016-10-28file/git-file.c (recurse_time): search entire tree, not only top levelWerner Almesberger1-3/+19
2016-10-28kicad/pl-render.c: new date formats %s (sheet date) and %S (max sheet date)Werner Almesberger1-5/+26
2016-10-28kicad/sch.h, sch-parse.c: keep the file's mtime also in "struct sheet"Werner Almesberger2-0/+5
2016-10-28file/git-file.c (vcs_git_time): getting the right date is a little harder ...Werner Almesberger1-1/+49
First, we should be using the author ("content") date, not the commit ("envelope") date: http://stackoverflow.com/questions/11856983/why-git-authordate-is-different-from-commitdate Second, the date of the commit where we picked up the file doesn't seem to be very relevant. What we're really interested in is when the file last changed. For this, we need to perform an expensive search.
2016-10-28file/git-file.c (related_same_repo, related_only_repo): copy commit, tooWerner Almesberger1-0/+2
Else, we'll have an undefined vcs_git->commit, and crash.
2016-10-28kicad/pl-render.c: complex date formatting (for eeplot -d, WIP)Werner Almesberger1-1/+109
2016-10-28gui/clipboard.c: forgot to commit (reported by Martin Borgert)Werner Almesberger1-0/+57
2016-10-28kicad/pl-render.c (expand): don't try to free string literalWerner Almesberger1-1/+1
2016-10-28file/: retrieve file mtime or commit timeWerner Almesberger4-17/+53