Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Nov 30, 2024
1 parent 067bde7 commit ef78621
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Fn/Binary/Command/Parallel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
/// results.
pub async fn Fn(Option { Entry, Separator, Pattern, Omit, .. }:Option) {
let (Allow, mut Mark) = tokio::sync::mpsc::unbounded_channel();

let Queue = futures::stream::FuturesUnordered::new();

for Entry in Entry
Expand Down Expand Up @@ -73,6 +74,7 @@ pub async fn Fn(Option { Entry, Separator, Pattern, Omit, .. }:Option) {

tokio::spawn(async move {
Queue.collect::<Vec<_>>().await;

drop(Allow);
});

Expand Down
1 change: 1 addition & 0 deletions Source/Fn/Summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub async fn Fn(

for Window in Tag.windows(2) {
let Start = &Window[0];

let End = &Window[1];

Insert::Fn(
Expand Down
10 changes: 10 additions & 0 deletions Source/Fn/Summary/Difference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,25 @@ pub fn Fn(
let mut Options = git2::DiffOptions::new();

Options.indent_heuristic(true);

Options.minimal(true);

Options.force_text(true);

Options.ignore_blank_lines(true);

Options.ignore_case(true);

Options.ignore_filemode(true);

Options.ignore_whitespace(true);

Options.ignore_whitespace_change(true);

Options.ignore_whitespace_eol(true);

Options.show_binary(false);

Options.force_binary(false);

let mut Output = String::new();
Expand Down
2 changes: 2 additions & 0 deletions Source/Fn/Summary/First.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
/// This function does not panic.
pub fn Fn(Repository:&Repository) -> Result<Oid, git2::Error> {
let mut Walk = Repository.revwalk()?;

Walk.push_head()?;

Walk.set_sorting(Sort::TOPOLOGICAL | Sort::REVERSE)?;

match Walk.next() {
Expand Down
2 changes: 2 additions & 0 deletions Source/Fn/Summary/Group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ where
})
.or_insert_with(|| {
let mut New = HashSet::new();

New.insert(Difference);

New
});
}
Expand Down
2 changes: 2 additions & 0 deletions Source/Fn/Summary/Insert/Hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
/// This function does not return errors.
pub fn Fn<T:Hash>(Input:&T) -> u64 {
let mut Output = DefaultHasher::new();

Input.hash(&mut Output);

Output.finish()
}

Expand Down

0 comments on commit ef78621

Please sign in to comment.