path: root/file
AgeCommit message (Collapse)AuthorFilesLines
2016-09-07fix numerous whitespace atrocitiesWerner Almesberger2-4/+3
- trailing spaces - trailing tabs - space before tab - more than four spaces ... - at the beginning of a line - after tab - in general (okay in many cases, but not all) - caught a stray blank line as well
2016-09-06file/file.c (file_open): add tracingWerner Almesberger1-0/+2
2016-09-06file/file.c (file_search): apply file_open to a search pathWerner Almesberger2-0/+28
2016-09-04file/git-file.c (canonical_path_into_repo): avoid fatal error if we leave repoWerner Almesberger1-1/+17
Instead, we give up and let the caller look for alternatives.
2016-09-04file/git-hist.c (vcs_git_try): check if the file really exists in the repoWerner Almesberger3-1/+24
Else, eeshow may load some huge revision history for an uncommitted file, just to report that it can't be found.
2016-08-30file/file.c (file_cleanup): clean up static getline bufferWerner Almesberger2-5/+15
2016-08-28file/git-hist.c (hist_iterate): pass "next" pointer as wellWerner Almesberger2-12/+9
This way, the callback don't need to search the list to figure it out on its own.
2016-08-28file/git-hist.c: give also "dirty" the full treatment, with threadsWerner Almesberger1-10/+10
2016-08-28file/git-hist.c (dump_one): don't overrun sorted_histWerner Almesberger1-5/+6
I did try to do it right, but didn't ...
2016-08-28file/git-hist.c (classify_threads): rename to threads_classify; split off sizeWerner Almesberger2-7/+13
We may prefer to know the number of threads before starting to walk down the list.
2016-08-28file/git-hist.c: record threads and show in dump_hist output (experimental)Werner Almesberger2-5/+207
2016-08-28file/git-hist.c (vcs_git_long_for_pango): clean up; put space between branchesWerner Almesberger1-29/+26
2016-08-28file/git-hist.c: sort history by partial order and dateWerner Almesberger1-2/+102
By including the date, we avoid valid but unexpected sequences, e.g. beginning the list with branches that started in the distant past.
2016-08-28file/git-hist.c, gui/: support multiple heads; update GUI accordinglyWerner Almesberger2-24/+58
While we try to iterate HEAD first, this won't result in HEAD coming out on top if there is another branch that is ahead of HEAD. While we could try some heuristics to avoid this, it'll be better to just sort the whole list first by (partial) git history order and then by date. That way, the result will never be too far from what a human user will expect to see.
2016-08-28file/git-hist.c: cache branches in "struct vcs_history"Werner Almesberger1-11/+38
2016-08-27file/git-hist.c (vcs_git_summary_for_pango, vcs_git_long_for_pango): branchesWerner Almesberger2-3/+53
vcs_git_long_for_pango now shows branches. New vcs_git_summary_for_pango is a branch-showing alternative to vcs_git_summary.
2016-08-27file/git-hist.c: detect branches; dump_hist shows name(s)Werner Almesberger2-15/+74
2016-08-27file/git-hist.h (struct hist, struct history): prepend vcs_Werner Almesberger2-43/+45
2016-08-27file/git-hist.c: introduce history descriptor to API, removing global "history"Werner Almesberger2-24/+48
This will be used for more things in the future.
2016-08-27file/git-hist.c: add section commentsWerner Almesberger1-0/+12
2016-08-27file/git-hist.c (hist_iterate): "last child" logic was brokenWerner Almesberger2-3/+23
This caused commits to be placed out of sequence when iterating.
2016-08-27file/git-hist.c (n_branches, find_commit): get rid of "open branches" arrayWerner Almesberger2-27/+20
We used to have an arrary of branches we've entered but not left yet, which we used to look for commits already in the tree we're in the process of building. However, this didn't work as intended since a branch may have progressed already past the current position and we wouldn't see the commits on it. Furthermore, recursing the tree above us for each branch could easily be less efficient than just running through all the nodes. So keeping a list of nodes is what we do now.
2016-08-27file/git-hist.c (dump_hist): use hist_iterateWerner Almesberger1-5/+6
This way, we can be sure everything uses the same algorithm.
2016-08-27file/git-file.c, git-hist.c: use pfatal_git, perror_gitWerner Almesberger2-53/+22
2016-08-27file/git-hist.c: don't forget to #include <git2.h>Werner Almesberger1-0/+2
2016-08-22eeshow/file/git-file.c (related_only_repo): lookup repo again after graftingWerner Almesberger1-0/+16
Else, symlinks may confuse us.
2016-08-22eeshow/misc/util.h (realloc_size, realloc_type_n): get rid of bare "realloc"Werner Almesberger1-4/+2
Finally ! Shoulds have done this a long time ago.
2016-08-22eeshow/diag.c (progress): don't require user to supply newlineWerner Almesberger3-19/+19
2016-08-22eeshow/diag.c (error): don't require user to supply newlineWerner Almesberger2-3/+3
2016-08-22eeshow/diag.c (warning): don't require user to supply newlineWerner Almesberger1-1/+1
2016-08-19eeshow/file/git-util.c (git_init_once): use git_threads_init in old libgit2Werner Almesberger1-0/+4
Joerg has some ancient SuSE from 2014 where only libgit2 0.21 works ...
2016-08-17eeshow/: util.h and diag.c go to misc/Werner Almesberger3-6/+6
2016-08-17eeshow/: move file and history access to file/Werner Almesberger8-0/+1264